Message ID | 20210909123541.34779-1-colin.king@canonical.com |
---|---|
State | Accepted |
Commit | c3ab3f140bb393f29dfed28f891116320fb11a17 |
Headers | show |
Series | Bluetooth: btintel: Fix incorrect out of memory check | expand |
diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c index 115bb2d07a8d..9359bff47296 100644 --- a/drivers/bluetooth/btintel.c +++ b/drivers/bluetooth/btintel.c @@ -2176,7 +2176,7 @@ static int btintel_get_codec_config_data(struct hci_dev *hdev, } *ven_data = kmalloc(sizeof(__u8), GFP_KERNEL); - if (!ven_data) { + if (!*ven_data) { err = -ENOMEM; goto error; }