[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>
This commit is contained in:
Tobias Klauser 2006-03-21 23:53:16 -08:00 committed by David S. Miller
parent e952f31bce
commit 67b52e554b

View file

@ -533,7 +533,7 @@ int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
(*req->device) ? req->device : "bnep%d", (*req->device) ? req->device : "bnep%d",
bnep_net_setup); bnep_net_setup);
if (!dev) if (!dev)
return ENOMEM; return -ENOMEM;
down_write(&bnep_session_sem); down_write(&bnep_session_sem);