From: Tobias Klauser Date: Wed, 22 Mar 2006 07:53:16 +0000 (-0800) Subject: [BLUETOOTH]: Return negative error constant X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=67b52e554ba973947704fcb4fc284d7bab9ab931;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [BLUETOOTH]: Return negative error constant Return negative error constant. Signed-off-by: Tobias Klauser Signed-off-by: Andrew Morton Signed-off-by: David S. Miller --- 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);