Skip to content

Commit 67b52e5

Browse files
Tobias Klauserdavem330
authored andcommitted
[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>
1 parent e952f31 commit 67b52e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/bluetooth/bnep/core.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,8 @@ int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
532532
dev = alloc_netdev(sizeof(struct bnep_session),
533533
(*req->device) ? req->device : "bnep%d",
534534
bnep_net_setup);
535-
if (!dev)
536-
return ENOMEM;
535+
if (!dev)
536+
return -ENOMEM;
537537

538538

539539
down_write(&bnep_session_sem);

0 commit comments

Comments
 (0)