From: Jiri Kosina Date: Tue, 11 Nov 2008 22:45:38 +0000 (+0100) Subject: HID: fix incorrent length condition in hidraw_write() X-Git-Tag: v2.6.27.6~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91d0da3c88d130c03a16813aeee7dbedc539b017;p=pandora-kernel.git HID: fix incorrent length condition in hidraw_write() upstream commit 2b107d629dc0c35de606bb7b010b829cd247a93a From: Jiri Kosina The bound check on the buffer length if (count > HID_MIN_BUFFER_SIZE) is of course incorrent, the proper check is if (count > HID_MAX_BUFFER_SIZE) Fix it. Reported-by: Jerry Ryle Signed-off-by: Jiri Kosina Cc: Paul Stoffregen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed