diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c index cf4a56095817..6bfcd35ac820 100644 --- a/drivers/bluetooth/hci_bcsp.c +++ b/drivers/bluetooth/hci_bcsp.c @@ -739,8 +739,6 @@ static int bcsp_close(struct hci_uart *hu) del_timer_sync(&bcsp->tbcsp); - hu->priv = NULL; - BT_DBG("hu %p", hu); skb_queue_purge(&bcsp->unack); @@ -753,6 +751,8 @@ static int bcsp_close(struct hci_uart *hu) } kfree(bcsp); + hu->priv = NULL; + return 0; }