HID: sensors: use GFP_ATOMIC under spinlock
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Sep 2012 06:53:23 +0000 (06:53 +0000)
committerJonathan Cameron <jic23@kernel.org>
Tue, 18 Sep 2012 20:50:43 +0000 (21:50 +0100)
commit2b7c4b8e3edfd109a8423ff593a12a5fe09615b2
tree3362eadd65db79a0dc440f40995a63f752e95bcc
parentf45c69b1136078bb35ee0f1cb89ae92fd9bc5cd0
HID: sensors: use GFP_ATOMIC under spinlock

We're holding a spinlock here so we can't call kmalloc() with
GFP_KERNEL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/hid/hid-sensor-hub.c