git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a47dc4d
)
HID: cp2112: fix incorrect error propagation in cp2112_xfer()
author
Jiri Kosina
<jkosina@suse.cz>
Tue, 18 Feb 2014 08:43:53 +0000
(09:43 +0100)
committer
Jiri Kosina
<jkosina@suse.cz>
Tue, 18 Feb 2014 08:43:53 +0000
(09:43 +0100)
Both cp2112_read_req() and cp2112_write_req() are returning negative
value in cases of error, but cp2112_xfer() is storing the return
value into unsigned size_t-typed 'count'.
Fix this by making 'count' signed type.
Reported-by: fengguang.wu@intel.com
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
No differences found