We should use GFP_ATOMIC in uhid_hid_output_raw as long as it may
be called in atomic section.

Signed-off-by: Andre Guedes <[email protected]>
---
 drivers/hid/uhid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hid/uhid.c b/drivers/hid/uhid.c
index a5cf905..ef74fc6 100644
--- a/drivers/hid/uhid.c
+++ b/drivers/hid/uhid.c
@@ -261,7 +261,7 @@ static int uhid_hid_output_raw(struct hid_device *hid, __u8 
*buf, size_t count,
        if (count < 1 || count > UHID_DATA_MAX)
                return -EINVAL;
 
-       ev = kzalloc(sizeof(*ev), GFP_KERNEL);
+       ev = kzalloc(sizeof(*ev), GFP_ATOMIC);
        if (!ev)
                return -ENOMEM;
 
-- 
1.8.0.1

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to