Skip to content

Commit 7ddb692

Browse files
syamsidhardhholtmann
authored andcommitted
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>
1 parent f71e823 commit 7ddb692

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/bluetooth/bfusb.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static int bfusb_probe(struct usb_interface *intf, const struct usb_device_id *i
637637
/* Initialize control structure and load firmware */
638638
data = devm_kzalloc(&intf->dev, sizeof(struct bfusb_data), GFP_KERNEL);
639639
if (!data)
640-
goto done;
640+
return -ENOMEM;
641641

642642
data->udev = udev;
643643
data->bulk_in_ep = bulk_in_ep->desc.bEndpointAddress;

0 commit comments

Comments
 (0)