aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btsdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bluetooth/btsdio.c')
-rw-r--r--drivers/bluetooth/btsdio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c
index b786f6187902..58630cc1eff2 100644
--- a/drivers/bluetooth/btsdio.c
+++ b/drivers/bluetooth/btsdio.c
@@ -162,10 +162,8 @@ static int btsdio_rx_packet(struct btsdio_data *data)
162 bt_cb(skb)->pkt_type = hdr[3]; 162 bt_cb(skb)->pkt_type = hdr[3];
163 163
164 err = hci_recv_frame(skb); 164 err = hci_recv_frame(skb);
165 if (err < 0) { 165 if (err < 0)
166 kfree(skb);
167 return err; 166 return err;
168 }
169 167
170 sdio_writeb(data->func, 0x00, REG_PC_RRT, NULL); 168 sdio_writeb(data->func, 0x00, REG_PC_RRT, NULL);
171 169