All of
 help / color / mirror / Atom feed
From: Oliver Neukum <>
To: Henk Martijn
	Greg KH <>,
	Jiri Kosina <>
Subject: [patch]fix usbhid using GFP_KERNEL in interrupt
Date: Mon, 21 Sep 2009 22:25:48 +0200	[thread overview]
Message-ID: <> (raw)

hid:usbhid: fix wrong use of GFP_KERNEL
hid_input_report() must be told it is called in interrupt context

Signed-off-by: Oliver Neukum <>

Hi Jiri, Greg,

this should go into the current tree and the stable tree.


commit ca5c4a1397d1a1c0d1074f4d8922630fdd732780
Author: Oliver Neukum <>
Date:   Mon Sep 21 22:02:01 2009 +0200

    hid:usbhid: fix wrong use of GFP_KERNEL
    hid_input_report() must be told it is called in interrupt context

diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
index 1b0e07a..ab2869d 100644
--- a/drivers/hid/usbhid/hid-core.c
+++ b/drivers/hid/usbhid/hid-core.c
@@ -455,7 +455,7 @@ static void hid_ctrl(struct urb *urb)
 		if (usbhid->ctrl[usbhid->ctrltail].dir == USB_DIR_IN)
-				urb->transfer_buffer, urb->actual_length, 0);
+				urb->transfer_buffer, urb->actual_length, 1);
 	case -ESHUTDOWN:	/* unplug */
 		unplug = 1;

To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to
More majordomo info at

             reply	other threads:[~2009-09-21 20:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-21 20:25 Oliver Neukum [this message]
2009-09-21 20:33 ` [patch]fix usbhid using GFP_KERNEL in interrupt Henk Martijn
2009-09-21 20:37   ` Oliver Neukum
2009-09-21 21:42     ` Jiri Kosina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.