OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f71e823
)
Bluetooth: bfusb: Fix the return error code
author
Syam Sidhardhan
<s.syam@samsung.com>
Tue, 22 Dec 2015 14:00:20 +0000
(19:30 +0530)
committer
Marcel 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
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/bfusb.c
b/drivers/bluetooth/bfusb.c
index
c304102
..
3bf4ec6
100644
(file)
--- a/
drivers/bluetooth/bfusb.c
+++ b/
drivers/bluetooth/bfusb.c
@@
-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;