Messages in this thread | | | Date | Mon, 27 Aug 2012 09:42:34 -0700 | From | Mark Brown <> | Subject | Re: [PATCH] max8907: fix use of possibly NULL idata |
| |
On Thu, Aug 23, 2012 at 12:19:18PM -0600, Stephen Warren wrote: > From: Stephen Warren <swarren@nvidia.com> > > If a regulator is not used by a board, it's quite legitimate not to > provide platform data or a device tree node to configure it (i.e. > regulator_init_data). In that case, during MAX8907 regulator's > probe(), the idata variable will be NULL for that regulator. Prevent > dereferincing it.
Applied, thanks. Please do remember to use subject lines which match up with the subsystem.
| |