From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752446AbbHURNI (ORCPT ); Fri, 21 Aug 2015 13:13:08 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:36749 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752345AbbHURNF (ORCPT ); Fri, 21 Aug 2015 13:13:05 -0400 Date: Fri, 21 Aug 2015 10:11:16 -0700 From: Olof Johansson To: Christian Engelmayer Cc: lee.jones@linaro.org, javier.martinez@collabora.co.uk, gwendal@chromium.org, rspangler@chromium.org, wfrichar@chromium.org, smbarber@chromium.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: cros_ec: Fix leak in sequence_store() Message-ID: <20150821171116.GE26236@localhost> References: <1437240633-13406-1-git-send-email-cengelma@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1437240633-13406-1-git-send-email-cengelma@gmx.at> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > Compile tested only. Applies against linux-next. Applied with adjusted patch subject (platform/chrome: cros_ec: ..) -Olof