From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shawn Guo Date: Wed, 20 May 2020 01:15:54 +0000 Subject: Re: [PATCH -next] firmware: imx: scu: Fix possible memory leak in imx_scu_probe() Message-Id: <20200520011545.GI11739@dragon> List-Id: References: <20200506051410.27219-1-weiyongjun1@huawei.com> In-Reply-To: <20200506051410.27219-1-weiyongjun1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Wei Yongjun Cc: Dong Aisheng , Sascha Hauer , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org On Wed, May 06, 2020 at 05:14:10AM +0000, Wei Yongjun wrote: > 'chan_name' is malloced in imx_scu_probe() and should be freed > before leaving from the error handling cases, otherwise it will > cause memory leak. > > Fixes: edbee095fafb ("firmware: imx: add SCU firmware driver support") > Signed-off-by: Wei Yongjun Applied, thanks.