Skip to content
Commit 4dfdc464 authored by Jiri Kosina's avatar Jiri Kosina
Browse files

HID: fix error condition propagation in hid-sony driver



sony_set_operational() only propagates return value from
usb_control_msg(), which returns negative on error and number
of transferred bytes otherwise.

Reported-by: default avatarMarcin Tolysz <tolysz@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent b8a832b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment