projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8a832b
)
HID: fix error condition propagation in hid-sony driver
author
Jiri Kosina
<jkosina@suse.cz>
Mon, 29 Dec 2008 23:49:59 +0000
(
00:49
+0100)
committer
Jiri Kosina
<jkosina@suse.cz>
Sun, 4 Jan 2009 00:01:43 +0000
(
01:01
+0100)
sony_set_operational() only propagates return value from
usb_control_msg(), which returns negative on error and number
of transferred bytes otherwise.
Reported-by: Marcin Tolysz <tolysz@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-sony.c
b/drivers/hid/hid-sony.c
index 86e563b8d6447a81fd924a1e45f9cdb37ebac48f..dd5a3979a4defd1e606669da4ccc91800a0c60c3 100644
(file)
--- a/
drivers/hid/hid-sony.c
+++ b/
drivers/hid/hid-sony.c
@@
-102,7
+102,7
@@
static int sony_probe(struct hid_device *hdev, const struct hid_device_id *id)
}
ret = sony_set_operational(hdev);
- if (ret)
+ if (ret
< 0
)
goto err_stop;
return 0;