Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: [PATCH] Bluetooth: mediatek: Fix memory leak From: Marcel Holtmann In-Reply-To: <20180814151031.GA25096@embeddedor.com> Date: Tue, 21 Aug 2018 16:57:11 +0200 Cc: Sean Wang , Johan Hedberg , Matthias Brugger , linux-bluetooth@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Message-Id: References: <20180814151031.GA25096@embeddedor.com> To: "Gustavo A. R. Silva" Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Gustavo, > In case memory resources for *fw* were allocated, release them before > return. > > Addresses-Coverity-ID: 1472611 ("Resource leak") > Fixes: 7237c4c9ec92 ("Bluetooth: mediatek: Add protocol support for MediaTek serial devices") > Signed-off-by: Gustavo A. R. Silva > --- > drivers/bluetooth/btmtkuart.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) patch has been applied to bluetooth-stable tree. Regards Marcel