Re: [PATCH] Bluetooth: mediatek: Fix memory leak

2018-08-21 Thread Marcel Holtmann
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 > --- > drive

Re: [PATCH] Bluetooth: mediatek: Fix memory leak

2018-08-14 Thread Gustavo A. R. Silva
On 8/14/18 1:45 PM, Sean Wang wrote: > Hi, Gustavo > > thanks for the catch up Glad to help. :) > > Acked-by: Sean Wang > Thanks -- Gustavo

Re: [PATCH] Bluetooth: mediatek: Fix memory leak

2018-08-14 Thread Sean Wang
Hi, Gustavo thanks for the catch up Acked-by: Sean Wang On Tue, 2018-08-14 at 10:10 -0500, Gustavo A. R. Silva wrote: > In case memory resources for *fw* were allocated, release them before > return. > > Addresses-Coverity-ID: 1472611 ("Resource leak") > Fixes: 7237c4c9ec92 ("Bluetooth: media

[PATCH] Bluetooth: mediatek: Fix memory leak

2018-08-14 Thread Gustavo A. R. Silva
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 +