Re: [PATCH] power_supply: pm2301_charger: Fix NULL pointer dereference

From: Linus Walleij
Date: Fri May 17 2013 - 09:46:06 EST


On Thu, May 16, 2013 at 11:31 AM, Axel Lin <axel.lin@xxxxxxxxxx> wrote:

> Add checking pl_data in probe, this prevent possible NULL pointer dereference.
> Also fix NULL pointer deference in dev_err when allocate memory for pm2 fails.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>

Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij
--
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/