Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224926
b: refs/heads/master
c: b78d7b4
h: refs/heads/master
v: v3
  • Loading branch information
Anderson Lizardo authored and Gustavo F. Padovan committed Dec 1, 2010
1 parent e57fb64 commit 5cc15c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eeb366564be7c311b31c70821d18a43a8a57f9bc
refs/heads/master: b78d7b4f204a6ba1901af36c95e10fded9816054
7 changes: 5 additions & 2 deletions trunk/net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -4871,8 +4871,10 @@ static int __init l2cap_init(void)
return err;

_busy_wq = create_singlethread_workqueue("l2cap");
if (!_busy_wq)
goto error;
if (!_busy_wq) {
proto_unregister(&l2cap_proto);
return -ENOMEM;
}

err = bt_sock_register(BTPROTO_L2CAP, &l2cap_sock_family_ops);
if (err < 0) {
Expand Down Expand Up @@ -4900,6 +4902,7 @@ static int __init l2cap_init(void)
return 0;

error:
destroy_workqueue(_busy_wq);
proto_unregister(&l2cap_proto);
return err;
}
Expand Down

0 comments on commit 5cc15c6

Please sign in to comment.