From 2b107d629dc0c35de606bb7b010b829cd247a93a Mon Sep 17 00:00:00 2001 From: Jiri Kosina Date: Wed, 17 Sep 2008 19:41:58 +0200 Subject: [PATCH] HID: fix incorrent length condition in hidraw_write() 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 --- Reading git-format-patch failed