X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fbluetooth%2Fbnep%2Fcore.c;fp=net%2Fbluetooth%2Fbnep%2Fcore.c;h=cbb20c32a6c8f3e9631d92e6f700497c04099d0e;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=e620061fb50fd83cd530167d863b1745f3f7a3fd;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c index e620061fb..cbb20c32a 100644 --- a/net/bluetooth/bnep/core.c +++ b/net/bluetooth/bnep/core.c @@ -29,6 +29,7 @@ * $Id: core.c,v 1.20 2002/08/04 21:23:58 maxk Exp $ */ +#include #include #include @@ -531,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);