Re: [PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

From: Sebastian Reichel
Date: Mon May 01 2017 - 07:35:13 EST


Hi,

On Mon, Apr 24, 2017 at 04:22:08PM +0800, Pan Bian wrote:
> Function devm_kzalloc() will return a NULL pointer. However, in function
> isp1704_charger_probe(), the return value of devm_kzalloc() is directly
> used without validation. This may result in a bad memory access bug.
>
> Signed-off-by: Pan Bian <bianpan2016@xxxxxxx>

Thanks, queued.

-- Sebastian

Attachment: signature.asc
Description: PGP signature