Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1633617 > unrolled thread

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

Started bySebastian Reichel <sebastian.reichel@collabora.co.uk>
First post2017-05-01 13:40 +0200
Last post2017-05-01 13:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/1] power: Fix unchecked return value of devm_kzalloc Sebastian Reichel <sebastian.reichel@collabora.co.uk> - 2017-05-01 13:40 +0200

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

FromSebastian Reichel <sebastian.reichel@collabora.co.uk>
Date2017-05-01 13:40 +0200
SubjectRe: [PATCH 1/1] power: Fix unchecked return value of devm_kzalloc
Message-ID<tChQm-8m-25@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

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@163.com>

Thanks, queued.

-- Sebastian

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web