aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/hid-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 342b7d36d7bb..ca9bb26c2076 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1089,8 +1089,7 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i
1089 return -1; 1089 return -1;
1090 } 1090 }
1091 1091
1092 buf = kmalloc(sizeof(char) * HID_DEBUG_BUFSIZE, 1092 buf = kmalloc(sizeof(char) * HID_DEBUG_BUFSIZE, GFP_ATOMIC);
1093 interrupt ? GFP_ATOMIC : GFP_KERNEL);
1094 1093
1095 if (!buf) { 1094 if (!buf) {
1096 report = hid_get_report(report_enum, data); 1095 report = hid_get_report(report_enum, data);