diff options
| author | kimi <kimi.h.kuparinen@gmail.com> | 2020-06-27 12:34:32 -0400 |
|---|---|---|
| committer | kimi <kimi.h.kuparinen@gmail.com> | 2020-06-27 12:34:32 -0400 |
| commit | 4976c758285759ae5a6403ba100051c8b33479a2 (patch) | |
| tree | 47a2b6f0dc08bba6d4ea78f46ae28938bbd193f3 /hid-tmff2.c | |
| parent | 3cb75787dfaedaae1b5a3a6a592687c1210d4b22 (diff) | |
| download | hid-tmff2-4976c758285759ae5a6403ba100051c8b33479a2.tar.gz hid-tmff2-4976c758285759ae5a6403ba100051c8b33479a2.zip | |
more testing
Diffstat (limited to 'hid-tmff2.c')
| -rw-r--r-- | hid-tmff2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hid-tmff2.c b/hid-tmff2.c index 1d5ba9a..2f1090c 100644 --- a/hid-tmff2.c +++ b/hid-tmff2.c @@ -349,9 +349,9 @@ static int tmff_play(struct input_dev *dev, void *data, last = ktime_get_ns(); - struct urb *urb = usb_alloc_urb(0, GFP_KERNEL); + struct urb *urb = usb_alloc_urb(0, GFP_ATOMIC); - u8 *send_buf = kmalloc(1024, GFP_KERNEL); + u8 *send_buf = kmalloc(1024, GFP_ATOMIC); memcpy(send_buf, ff_constant_array, ARRAY_SIZE(ff_constant_array)); ep = &usbif->cur_altsetting->endpoint[1]; @@ -389,7 +389,7 @@ static int tmff_play(struct input_dev *dev, void *data, hid, ep->desc.bInterval ); - usb_submit_urb(urb, GFP_KERNEL); + usb_submit_urb(urb, GFP_ATOMIC); break; |
