]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: Fix leak of skb when processing C2H_BT_INFO
authorLarry Finger <Larry.Finger@lwfinger.net>
Sun, 18 Nov 2018 02:55:03 +0000 (20:55 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 13 Dec 2018 13:35:07 +0000 (15:35 +0200)
commit32fa613927516e56d01f79b4f836eed31d35b944
tree48ad236bf67f47e9fcc4f9700136e15dc9b0d5e6
parentc1cd78c0e0fca39e5e5c6c6ccb3b1437a1beeacd
rtlwifi: Fix leak of skb when processing C2H_BT_INFO

With commit 5e26939b2dda ("rtlwifi: fix btmpinfo timeout while processing
C2H_BT_INFO"), calling rtl_c2hcmd_enqueue() with rtl_c2h_fast_cmd() true,
the routine returns without freeing that skb, thereby leaking it.

This issue has been discussed at https://github.com/lwfinger/rtlwifi_new/issues/401
and the fix tested there.

Fixes: 5e26939b2dda ("rtlwifi: fix btmpinfo timeout while processing C2H_BT_INFO")
Reported-and-tested-by: Francisco Machado Magalhães Neto <franmagneto@gmail.com>
Cc: Francisco Machado Magalhães Neto <franmagneto@gmail.com>
Cc: Ping-Ke Shih <pkshih@realtek.com>
Cc: Stable <stable@vger.kernel.org> # 4.18+
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/base.c