Re: [PATCH -next] mfd: sta2x11-mfd: fix potential NULL pointerdereference in __sta2x11_mfd_mask()
From: Samuel Ortiz
Date: Sun Dec 02 2012 - 18:47:46 EST
Hi Wei,
On Sun, Dec 02, 2012 at 08:36:22AM -0500, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
>
> The dereference to 'mfd' should be moved below the NULL test.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
> ---
> drivers/mfd/sta2x11-mfd.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Patch applied, thanks.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/