[PATCH] Bluetooth: mediatek: Fix memory leak

From
Marcel Holtmann <marcel@holtmann.org>
Date
2018-08-21 14:57:15
Also in
linux-bluetooth, linux-mediatek, lkml
Reply to
Gustavo A. R. Silva, 2018-08-14
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 <redacted>
---
drivers/bluetooth/btmtkuart.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
patch has been applied to bluetooth-stable tree.

Regards

Marcel
Thread (4 messages) 4 messages, 3 authors, last reply 2018-08-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help