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


Groups > linux.kernel > #1211265 > unrolled thread

Re: [PATCH] mfd: cros_ec: Fix possible leak in led_rgb_store()

Started byOlof Johansson <olof@lixom.net>
First post2015-08-21 19:20 +0200
Last post2015-08-21 19:20 +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] mfd: cros_ec: Fix possible leak in led_rgb_store() Olof Johansson <olof@lixom.net> - 2015-08-21 19:20 +0200

#1211265 — Re: [PATCH] mfd: cros_ec: Fix possible leak in led_rgb_store()

FromOlof Johansson <olof@lixom.net>
Date2015-08-21 19:20 +0200
SubjectRe: [PATCH] mfd: cros_ec: Fix possible leak in led_rgb_store()
Message-ID<pZY8W-1FW-9@gated-at.bofh.it>
On Sun, Jul 19, 2015 at 09:43:02PM +0200, Christian Engelmayer wrote:
> Function led_rgb_store() contains some direct returns in error cases that
> leak the already allocated cros_ec_command message structure. Make sure
> that 'msg' is freed in all exit paths. Detected by Coverity CID 1309666.
> 
> Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
> ---
> Compile tested only. Applies against linux-next.

Applied with adjusted patch subject.


-Olof

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web