aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/bnep
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/bnep')
-rw-r--r--net/bluetooth/bnep/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c
index cbb20c32a6c8..d908d49dc9f8 100644
--- a/net/bluetooth/bnep/core.c
+++ b/net/bluetooth/bnep/core.c
@@ -532,8 +532,8 @@ int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
532 dev = alloc_netdev(sizeof(struct bnep_session), 532 dev = alloc_netdev(sizeof(struct bnep_session),
533 (*req->device) ? req->device : "bnep%d", 533 (*req->device) ? req->device : "bnep%d",
534 bnep_net_setup); 534 bnep_net_setup);
535 if (!dev) 535 if (!dev)
536 return ENOMEM; 536 return -ENOMEM;
537 537
538 538
539 down_write(&bnep_session_sem); 539 down_write(&bnep_session_sem);