]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Bluetooth: bfusb: Fix the return error code
authorSyam Sidhardhan <s.syam@samsung.com>
Tue, 22 Dec 2015 14:00:20 +0000 (19:30 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 22 Dec 2015 14:25:33 +0000 (15:25 +0100)
-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>
drivers/bluetooth/bfusb.c

index c304102fa6735625b22567b693b855d3ed4a4988..3bf4ec60e073608d558ff5e5b8fb8273ce043d56 100644 (file)
@@ -637,7 +637,7 @@ static int bfusb_probe(struct usb_interface *intf, const struct usb_device_id *i
        /* Initialize control structure and load firmware */
        data = devm_kzalloc(&intf->dev, sizeof(struct bfusb_data), GFP_KERNEL);
        if (!data)
-               goto done;
+               return -ENOMEM;
 
        data->udev = udev;
        data->bulk_in_ep    = bulk_in_ep->desc.bEndpointAddress;