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

From: Olof Johansson
Date: Fri Aug 21 2015 - 13:13:12 EST


On Sat, Jul 18, 2015 at 07:30:33PM +0200, Christian Engelmayer wrote:
> The allocated cros_ec_command message structure is not freed in function
> sequence_store(). Make sure that 'msg' is freed in all exit paths.
> Detected by Coverity CID 1309667.
>
> Signed-off-by: Christian Engelmayer <cengelma@xxxxxx>
> ---
> Compile tested only. Applies against linux-next.

Applied with adjusted patch subject (platform/chrome: cros_ec: ..)


-Olof
--
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/