From: Jiri Kosina Date: Thu, 6 Dec 2012 09:59:28 +0000 (+0100) Subject: HID: i2c-hid: fix ret_count check X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~36^2^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9afd09a1db93cc9084846c2b9bc0d1194743e5dc;p=pandora-kernel.git HID: i2c-hid: fix ret_count check ret_count has to be at least 3, as we have to count the 2 bytes that are used for the size of the reply. Without this, memcpy() might be called with zero or negative count. Reported-by: Jean Delvare Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed