提交 8475e233 编写于 作者: D Dan Carpenter 提交者: Gustavo F. Padovan

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: NDan Carpenter <error27@gmail.com>
Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 674db134
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册