[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1527043191-23610-1-git-send-email-lipengcheng8@huawei.com>
Date: Wed, 23 May 2018 10:39:51 +0800
From: Pengcheng Li <lipengcheng8@...wei.com>
To: <amira@...com>, <pavan_savoy@...com>, <x0153368@...com>,
<gigi.joseph@...com>, <marcel@...tmann.org>,
<johan.hedberg@...il.com>, <arnd@...db.de>,
<gregkh@...uxfoundation.org>, <guodong.xu@...aro.org>,
<john.stultz@...aro.org>, <dimitrysh@...gle.com>,
<linux-kernel@...r.kernel.org>
CC: <lipengcheng8@...wei.com>, <yaobaofeng@...wei.com>,
<lijiangxiong@...ilicon.com>, <kongfei@...ilicon.com>
Subject: [PATCH] misc: st_core: Fix skb double free corruption
St_gdata->list[chnl_id]->recv function pointer to hci_recv_frame interface,
hci_recv_frame interface releases skb buffer in case of exception.
Signed-off-by: Li Pengcheng <lipengcheng8@...wei.com>
Signed-off-by: Yao Baofeng <yaobaofeng@...wei.com>
Signed-off-by: Li Jiangxiong <lijiangxiong@...ilicon.com>
---
drivers/misc/ti-st/st_core.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c
index 0005159..f4ce211 100644
--- a/drivers/misc/ti-st/st_core.c
+++ b/drivers/misc/ti-st/st_core.c
@@ -124,7 +124,6 @@ static void st_send_frame(unsigned char chnl_id, struct st_data_s *st_gdata)
(st_gdata->list[chnl_id]->priv_data, st_gdata->rx_skb)
!= 0)) {
pr_err(" proto stack %d's ->recv failed", chnl_id);
- kfree_skb(st_gdata->rx_skb);
return;
}
} else {
--
2.8.0
Powered by blists - more mailing lists