diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c index 664d82d1e613..224ec9463f40 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) timer_shutdown_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; }