diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2006-03-22 02:53:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-22 02:53:16 -0500 |
commit | 67b52e554ba973947704fcb4fc284d7bab9ab931 (patch) | |
tree | 9f933717a5cacef5f7fe4a57e7761ea59e09bc6f | |
parent | e952f31bce6e9f64db01f607abc46529ba57ac9e (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>
-rw-r--r-- | net/bluetooth/bnep/core.c | 4 |
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); |