Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8475e233 authored by Dan Carpenter's avatar Dan Carpenter Committed by Gustavo Padovan
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 674db134
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}