diff options
author | Dan Carpenter <error27@gmail.com> | 2011-08-03 10:22:45 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-08-11 18:50:25 -0400 |
commit | 8475e2336cf80ba6e7b27715b4b3214d73c211ab (patch) | |
tree | b4c86acca4ef405dba900b404c7f8f85e3aac4b1 /net | |
parent | 674db1344443204b6ce3293f2df8fd1b7665deea (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/hci_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index ec0bc3f60f2e..fca62dcd7f1b 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) | |||
1327 | 1327 | ||
1328 | entry = kzalloc(sizeof(struct bdaddr_list), GFP_KERNEL); | 1328 | entry = kzalloc(sizeof(struct bdaddr_list), GFP_KERNEL); |
1329 | if (!entry) { | 1329 | if (!entry) { |
1330 | return -ENOMEM; | 1330 | err = -ENOMEM; |
1331 | goto err; | 1331 | goto err; |
1332 | } | 1332 | } |
1333 | 1333 | ||