Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ddb6922 authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by Marcel Holtmann
Browse files

Bluetooth: bfusb: Fix the return error code



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

Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent f71e823b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -637,7 +637,7 @@ static int bfusb_probe(struct usb_interface *intf, const struct usb_device_id *i
	/* Initialize control structure and load firmware */
	/* Initialize control structure and load firmware */
	data = devm_kzalloc(&intf->dev, sizeof(struct bfusb_data), GFP_KERNEL);
	data = devm_kzalloc(&intf->dev, sizeof(struct bfusb_data), GFP_KERNEL);
	if (!data)
	if (!data)
		goto done;
		return -ENOMEM;


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