Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: bfusb: Fix the return error code

-ENOMEM is the appropriate error code instead of -EIO.

Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

authored by

Syam Sidhardhan and committed by
Marcel Holtmann
7ddb6922 f71e823b

+1 -1
+1 -1
drivers/bluetooth/bfusb.c
··· 637 637 /* Initialize control structure and load firmware */ 638 638 data = devm_kzalloc(&intf->dev, sizeof(struct bfusb_data), GFP_KERNEL); 639 639 if (!data) 640 - goto done; 640 + return -ENOMEM; 641 641 642 642 data->udev = udev; 643 643 data->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress;