From: Oliver Neukum Subject: Re: 2.6.31-0.1-default-07068-g43c1266 lockdep warning and scheduling while atomic BUG Date: Mon, 21 Sep 2009 22:04:49 +0200 Message-ID: <200909212204.50047.oliver@neukum.org> References: <1253560490.2934.42.camel@localhost> <4AB7D9B8.6000501@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out002.kontent.com ([81.88.40.216]:36832 "EHLO smtp-out002.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753518AbZIUUDJ (ORCPT ); Mon, 21 Sep 2009 16:03:09 -0400 In-Reply-To: <4AB7D9B8.6000501@gmail.com> Content-Disposition: inline Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Henk Martijn , linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "H. Peter Anvin" Am Montag, 21. September 2009 21:53:28 schrieb Henk Martijn: > This is a i7 based DELL and current git throws the following warning and > bug at me during boot: Please try this patch Regards Oliver -- 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) hid_input_report(urb->context, usbhid->ctrl[usbhid->ctrltail].report->type, - urb->transfer_buffer, urb->actual_length, 0); + urb->transfer_buffer, urb->actual_length, 1); break; case -ESHUTDOWN: /* unplug */ unplug = 1;