Skip to content

Commit

Permalink
Bluetooth: unlock if allocation fails in hci_blacklist_add()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Gustavo F. Padovan committed Aug 11, 2011
1 parent 674db13 commit 8475e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8475e23

Please sign in to comment.