diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c index e41854e0d79a..244390c4dfe6 100644 --- a/drivers/bluetooth/hci_h5.c +++ b/drivers/bluetooth/hci_h5.c @@ -248,6 +248,11 @@ static int h5_close(struct hci_uart *hu) if (h5->vnd && h5->vnd->close) h5->vnd->close(h5); + if(h5->rx_skb){ + kfree(h5->rx_skb); + h5->rx_skb = NULL; + } + if (!hu->serdev) kfree(h5);