From: Jiri Kosina Date: Tue, 18 Feb 2014 08:43:53 +0000 (+0100) Subject: HID: cp2112: fix incorrect error propagation in cp2112_xfer() X-Git-Tag: v3.15-rc1~114^2~4^2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0438ee7080ac83a6a831c52bc4e8c29dc2306e95;p=pandora-kernel.git HID: cp2112: fix incorrect error propagation in cp2112_xfer() 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 --- Reading git-diff-tree failed