aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/af_bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/af_bluetooth.c')
-rw-r--r--net/bluetooth/af_bluetooth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c
index 88af9eb9aa48..8add9b499912 100644
--- a/net/bluetooth/af_bluetooth.c
+++ b/net/bluetooth/af_bluetooth.c
@@ -550,10 +550,8 @@ static int __init bt_init(void)
550 goto error; 550 goto error;
551 551
552 err = l2cap_init(); 552 err = l2cap_init();
553 if (err < 0) { 553 if (err < 0)
554 hci_sock_cleanup();
555 goto sock_err; 554 goto sock_err;
556 }
557 555
558 err = sco_init(); 556 err = sco_init();
559 if (err < 0) { 557 if (err < 0) {