git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Bluetooth] Fix reference count when connection lookup fails
[pandora-kernel.git]
/
net
/
bluetooth
/
bnep
/
core.c
diff --git
a/net/bluetooth/bnep/core.c
b/net/bluetooth/bnep/core.c
index
2312d05
..
4d3424c
100644
(file)
--- a/
net/bluetooth/bnep/core.c
+++ b/
net/bluetooth/bnep/core.c
@@
-528,12
+528,10
@@
static struct device *bnep_get_device(struct bnep_session *session)
return NULL;
conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, dst);
- if (!conn)
- return NULL;
hci_dev_put(hdev);
- return
&conn->dev
;
+ return
conn ? &conn->dev : NULL
;
}
int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)