Re: [PATCH] POWER: jz4740-battery: Check if platform_data issupplied

From: Anton Vorontsov
Date: Thu Nov 18 2010 - 08:59:35 EST


On Thu, Nov 11, 2010 at 07:00:53PM +0100, Lars-Peter Clausen wrote:
> Currently platform_data is dereferenced without checking whether it is actually
> set, which can lead to kernel crashes.
> This patch adds a check which will abort the drivers probe function gracefully
> if no platform_data is supplied.
>
> Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
> ---

Also applied, thanks.

--
Anton Vorontsov
email: cbouatmailru@xxxxxxxxx
irc://irc.freenode.net/bd2
--
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/