[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120827164232.GH4339@opensource.wolfsonmicro.com>
Date: Mon, 27 Aug 2012 09:42:34 -0700
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Stephen Warren <swarren@...dotorg.org>
Cc: Liam Girdwood <lrg@...com>, Axel Lin <axel.lin@...il.com>,
Laxman Dewangan <ldewangan@...dia.com>,
Gyungoh Yoo <jack.yoo@...im-ic.com>,
linux-kernel@...r.kernel.org, Stephen Warren <swarren@...dia.com>
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@...dia.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists