diff options
author | Dan Carpenter <error27@gmail.com> | 2011-08-03 17:22:45 +0300 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-08-11 19:50:25 -0300 |
commit | 8475e2336cf80ba6e7b27715b4b3214d73c211ab (patch) | |
tree | b4c86acca4ef405dba900b404c7f8f85e3aac4b1 /net | |
parent | 674db1344443204b6ce3293f2df8fd1b7665deea (diff) | |
download | linux-8475e2336cf80ba6e7b27715b4b3214d73c211ab.tar.bz2 |
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) entry = kzalloc(sizeof(struct bdaddr_list), GFP_KERNEL); if (!entry) { - return -ENOMEM; + err = -ENOMEM; goto err; } |