From: Jiri Kosina Date: Thu, 26 Apr 2012 22:56:08 +0000 (+0200) Subject: HID: hidraw: add proper error handling to raw event reporting X-Git-Tag: v3.2.31~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb1c3652bb3e6690e50520c2d9a1493f15d93722;p=pandora-kernel.git HID: hidraw: add proper error handling to raw event reporting commit b6787242f32700377d3da3b8d788ab3928bab849 upstream. If kmemdup() in hidraw_report_event() fails, we are not propagating this fact properly. Let hidraw_report_event() and hid_report_raw_event() return an error value to the caller. Reported-by: Oliver Neukum Signed-off-by: Jiri Kosina Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed