Peter Hurley
ce7373685e
HID: logitech-dj: Fix non-atomic kmalloc in logi_dj_ll_input_event()
The ll_driver's .hidinput_input_event() method is called from
atomic context [1]. Use GFP_ATOMIC for allocation of the
synthesized hid report.
BUG: sleeping function called from invalid context at /home/peter/src/kernels/next/mm/slub.c:941
in_atomic(): 1, irqs_disabled(): 1, pid: 2095, name: Xorg
INFO: lockdep is turned off.
irq event stamp: 1502178
hardirqs last enabled at (1502177): [<ffffffff81785e55>] _raw_spin_unlock_irqrestore+0x65/0x80
hardirqs last disabled at (1502178): [<ffffffff8178632a>] common_interrupt+0x6a/0x6f
softirqs last enabled at (1501802): [<ffffffff81051ed3>] __do_softirq+0x183/0x420
softirqs last disabled at (1501799): [<ffffffff81052315>] irq_exit+0xb5/0xc0
CPU: 3 PID: 2095 Comm: Xorg Not tainted 3.11-next-20130725-xeon+lockdep #20130725
Hardware name: Dell Inc. Precision WorkStation T5400 /0RW203, BIOS A11 04/30/2012
ffffffff81a662e0 ffff8802adcf9ca8 ffffffff8177c330 0000000000000000
ffff8802a76d2440 ffff8802adcf9cd8 ffffffff810867d0 ffff8802a7ac8000
0000000000000010 00000000ffffffff 00000000000000d0 ffff8802adcf9d38
Call Trace:
[<ffffffff8177c330>] dump_stack+0x4f/0x84
[<ffffffff810867d0>] __might_sleep+0x140/0x1f0
[<ffffffff811ad93b>] __kmalloc+0x6b/0x2e0
[<ffffffffa026cb08>] ? hid_alloc_report_buf+0x28/0x30 [hid]
[<ffffffffa026cb08>] hid_alloc_report_buf+0x28/0x30 [hid]
[<ffffffffa00700b0>] logi_dj_ll_input_event+0xb0/0x1b0 [hid_logitech_dj]
[<ffffffff815a559e>] input_handle_event+0x8e/0x540
[<ffffffff815a5aad>] ? input_inject_event+0x5d/0x220
[<ffffffff815a5c10>] input_inject_event+0x1c0/0x220
[<ffffffff815a5a94>] ? input_inject_event+0x44/0x220
[<ffffffff81181660>] ? might_fault+0xa0/0xb0
[<ffffffff81181617>] ? might_fault+0x57/0xb0
[<ffffffff815a909e>] evdev_write+0xde/0x160
[<ffffffff811c0ad8>] vfs_write+0xc8/0x1f0
[<ffffffff811c0fe5>] SyS_write+0x55/0xa0
[<ffffffff8178e682>] system_call_fastpath+0x16/0x1b
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2013-08-01 00:45:52 +02:00
..
2013-07-04 10:29:23 -07:00
2013-06-03 21:49:52 +02:00
2013-07-03 19:49:46 -07:00
2013-07-03 17:12:13 -07:00
2013-07-03 17:12:13 -07:00
2013-06-13 13:05:40 -04:00
2013-07-02 14:23:01 -07:00
2013-07-03 16:07:25 -07:00
2013-07-03 17:12:13 -07:00
2013-07-03 14:35:40 -07:00
2013-07-03 09:46:29 -07:00
2013-07-03 14:35:40 -07:00
2013-07-03 14:35:40 -07:00
2013-07-02 14:33:21 -07:00
2013-07-03 17:12:13 -07:00
2013-07-03 17:12:13 -07:00
2013-07-03 13:11:18 -07:00
2013-07-03 16:07:41 -07:00
2013-07-04 10:29:23 -07:00
2013-06-24 16:23:25 -07:00
2013-07-03 14:35:40 -07:00
2013-07-03 16:07:43 -07:00
2013-08-01 00:45:52 +02:00
2013-07-03 16:07:41 -07:00
2013-06-24 16:24:17 -07:00
2013-07-03 19:56:35 -07:00
2013-07-04 10:29:23 -07:00
2013-07-03 16:07:41 -07:00
2013-06-11 20:34:36 +01:00
2013-07-03 16:07:41 -07:00
2013-07-03 11:12:08 -07:00
2013-07-04 10:29:23 -07:00
2013-07-02 16:14:35 -07:00
2013-07-03 16:07:41 -07:00
2013-07-02 08:44:02 -07:00
2013-06-25 16:25:32 -07:00
2013-07-01 11:46:56 +10:00
2013-06-11 11:41:51 -05:00
2013-07-04 16:42:57 +10:00
2013-07-03 17:12:13 -07:00
2013-06-17 16:46:06 -07:00
2013-07-03 16:08:06 -07:00
2013-07-03 16:07:41 -07:00
2013-07-03 19:52:22 -07:00
2013-07-03 19:52:22 -07:00
2013-07-03 14:35:40 -07:00
2013-07-03 16:07:41 -07:00
2013-07-03 17:12:13 -07:00
2013-05-21 10:48:41 +02:00
2013-06-20 16:41:37 +02:00
2013-07-03 09:10:19 -07:00
2013-07-03 17:12:13 -07:00
2013-07-03 17:12:13 -07:00
2013-07-02 11:44:19 -07:00
2013-07-03 11:48:03 -07:00
2013-07-03 16:07:41 -07:00
2013-07-03 14:35:40 -07:00
2013-06-10 10:50:48 -07:00
2013-07-03 16:08:06 -07:00
2013-06-24 16:41:32 -07:00
2013-07-03 16:08:05 -07:00
2013-07-03 11:56:38 -07:00
2013-06-11 11:41:51 -05:00
2013-07-03 16:08:01 -07:00
2013-07-03 17:12:13 -07:00
2013-07-03 19:49:46 -07:00
2013-06-28 13:01:40 +02:00
2013-07-03 17:12:13 -07:00
2013-06-14 18:28:02 -07:00
2013-07-03 17:12:13 -07:00
2013-06-20 16:47:41 -07:00
2013-06-19 01:31:50 +09:00
2013-07-03 14:35:40 -07:00
2013-07-03 16:07:26 -07:00
2013-07-03 17:12:13 -07:00
2013-07-03 16:07:41 -07:00
2013-07-04 10:29:23 -07:00
2013-06-11 02:46:21 -07:00
2013-07-03 17:12:13 -07:00
2013-07-03 17:12:13 -07:00
2013-06-24 16:23:25 -07:00
2013-07-03 16:08:06 -07:00
2013-07-04 10:29:23 -07:00
2013-07-03 17:12:13 -07:00
2013-06-29 12:57:28 +04:00
2013-06-17 16:38:57 -07:00
2013-06-17 16:38:57 -07:00