summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-08-03 14:22:45 (GMT)
committerGustavo F. Padovan <padovan@profusion.mobi>2011-08-11 22:50:25 (GMT)
commit8475e2336cf80ba6e7b27715b4b3214d73c211ab (patch)
treeb4c86acca4ef405dba900b404c7f8f85e3aac4b1
parent674db1344443204b6ce3293f2df8fd1b7665deea (diff)
downloadlinux-8475e2336cf80ba6e7b27715b4b3214d73c211ab.tar.xz
Bluetooth: unlock if allocation fails in hci_blacklist_add()
There was a small typo here so we never actually hit the goto which would call hci_dev_unlock_bh(). Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
-rw-r--r--net/bluetooth/hci_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index ec0bc3f..fca62dc 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1327,7 +1327,7 @@ int hci_blacklist_add(struct hci_dev *hdev, bdaddr_t *bdaddr)
entry = kzalloc(sizeof(struct bdaddr_list), GFP_KERNEL);
if (!entry) {
- return -ENOMEM;
+ err = -ENOMEM;
goto err;
}