This is a note to let you know that I've just added the patch titled HID: fix return value of hidraw_report_event() when !CONFIG_HIDRAW to the 3.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: hid-fix-return-value-of-hidraw_report_event-when-config_hidraw.patch and it can be found in the queue-3.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 9c48cc08ae1255d4b244529408f52d26673e1ccb Mon Sep 17 00:00:00 2001 From: Jiri Kosina <jkosina@xxxxxxx> Date: Mon, 30 Apr 2012 10:39:17 +0200 Subject: HID: fix return value of hidraw_report_event() when !CONFIG_HIDRAW From: Jiri Kosina <jkosina@xxxxxxx> commit d6d7c873529abd622897cad5e36f1fd7d82f5110 upstream. Commit b6787242f327 ("HID: hidraw: add proper error handling to raw event reporting") forgot to update the static inline version of hidraw_report_event() for the case when CONFIG_HIDRAW is unset. Fix that up. Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Signed-off-by: Jiri Kosina <jkosina@xxxxxxx> Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx> Cc: Yijing Wang <wangyijing@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- include/linux/hidraw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/hidraw.h +++ b/include/linux/hidraw.h @@ -82,7 +82,7 @@ void hidraw_disconnect(struct hid_device #else static inline int hidraw_init(void) { return 0; } static inline void hidraw_exit(void) { } -static inline int hidraw_report_event(struct hid_device *hid, u8 *data, int len) { } +static inline int hidraw_report_event(struct hid_device *hid, u8 *data, int len) { return 0; } static inline int hidraw_connect(struct hid_device *hid) { return -1; } static inline void hidraw_disconnect(struct hid_device *hid) { } #endif Patches currently in stable-queue which might be from jkosina@xxxxxxx are queue-3.4/hid-clean-up-quirk-for-sony-rf-receivers.patch queue-3.4/hid-usbhid-fix-build-problem.patch queue-3.4/hid-hidraw-add-proper-error-handling-to-raw-event-reporting.patch queue-3.4/hid-usbhid-quirk-for-formosa-ir-receiver.patch queue-3.4/hid-hidraw-improve-error-handling-in-hidraw_init.patch queue-3.4/hid-hidraw-fix-list-buffer-memleak.patch queue-3.4/hid-add-support-for-sony-rf-receiver-with-usb-product-id-0x0374.patch queue-3.4/hid-multitouch-validate-indexes-details.patch queue-3.4/hid-validate-feature-and-input-report-details.patch queue-3.4/hid-usbhid-quirk-for-msi-gx680r-led-panel.patch queue-3.4/hid-add-quirk-for-freescale-i.mx28-rom-recovery.patch queue-3.4/hid-apple-add-apple-wireless-keyboard-2011-ansi-pid.patch queue-3.4/hid-fix-return-value-of-hidraw_report_event-when-config_hidraw.patch queue-3.4/hid-hidraw-correctly-deallocate-memory-on-device-disconnect.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html