diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2008-10-31 08:40:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-31 08:40:19 +0100 |
commit | cbafe312ef4a263e9aa36786bc67e1e6d959872b (patch) | |
tree | d5cb85fecf9ebc961433bb8328509bb9b7ad6ddd /drivers/bluetooth/bpa10x.c | |
parent | xfrm: do not leak ESRCH to user space (diff) | |
download | linux-cbafe312ef4a263e9aa36786bc67e1e6d959872b.tar.xz linux-cbafe312ef4a263e9aa36786bc67e1e6d959872b.zip |
bpa10x: free sk_buff with kfree_skb
Inspired by Sergio Luis' similar patches, I finally found
a case which is trivial enough that spatch won't choke
on it.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/bluetooth/bpa10x.c')
-rw-r--r-- | drivers/bluetooth/bpa10x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c index 32f3a8ed8d3d..b936d8ce2728 100644 --- a/drivers/bluetooth/bpa10x.c +++ b/drivers/bluetooth/bpa10x.c @@ -443,8 +443,8 @@ static void bpa10x_destruct(struct hci_dev *hdev) BT_DBG("%s", hdev->name); - kfree(data->rx_skb[0]); - kfree(data->rx_skb[1]); + kfree_skb(data->rx_skb[0]); + kfree_skb(data->rx_skb[1]); kfree(data); } |