summaryrefslogtreecommitdiff
path: root/net/bluetooth/bnep
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@nuerscht.ch>2006-03-21 23:53:16 -0800
committerDavid S. Miller <davem@davemloft.net>2006-03-21 23:53:16 -0800
commit67b52e554ba973947704fcb4fc284d7bab9ab931 (patch)
tree9f933717a5cacef5f7fe4a57e7761ea59e09bc6f /net/bluetooth/bnep
parente952f31bce6e9f64db01f607abc46529ba57ac9e (diff)
[BLUETOOTH]: Return negative error constant
Return negative error constant. Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
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)
dev = alloc_netdev(sizeof(struct bnep_session),
(*req->device) ? req->device : "bnep%d",
bnep_net_setup);
- if (!dev)
- return ENOMEM;
+ if (!dev)
+ return -ENOMEM;
down_write(&bnep_session_sem);