Explorar o código

[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>
Tobias Klauser %!s(int64=19) %!d(string=hai) anos
pai
achega
67b52e554b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      net/bluetooth/bnep/core.c

+ 2 - 2
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);