Bluetooth: unlock if allocation fails in hci_blacklist_add()
[pandora-kernel.git] / net / bluetooth / hci_core.c
index ec0bc3f..fca62dc 100644 (file)
@@ -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;
        }