Re: [PATCH] regulator: lp872x: Return -EINVAL if pdata is NULL

From: Mark Brown
Date: Wed Jun 20 2012 - 06:18:54 EST


On Wed, Jun 20, 2012 at 04:13:15PM +0800, Axel Lin wrote:
> Return -EINVAL if pdata is NULL, otherwise we have NULL dereference bug.
> This patch also moves the code checking pdata earlier in lp872x_probe.

Applied, thanks. We should really not be insisting on pdata though.

Attachment: signature.asc
Description: Digital signature