projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99de091
)
Input: xpad - don't use GFP_ATOMIC
author
Oliver Neukum
<oliver@neukum.org>
Thu, 3 Apr 2008 20:19:33 +0000
(16:19 -0400)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 3 Apr 2008 20:19:33 +0000
(16:19 -0400)
GFP_ATOMIC should not be used when GFP_KERNEL can be used.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joystick/xpad.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/joystick/xpad.c
b/drivers/input/joystick/xpad.c
index ebf8303d6f5656f7ac2957af48a23a4b8ef5890c..d4d289e75dc260f739cd2935adec69637cde4f83 100644
(file)
--- a/
drivers/input/joystick/xpad.c
+++ b/
drivers/input/joystick/xpad.c
@@
-497,7
+497,7
@@
static int xpad_init_output(struct usb_interface *intf, struct usb_xpad *xpad)
return 0;
xpad->odata = usb_buffer_alloc(xpad->udev, XPAD_PKT_LEN,
- GFP_
ATOMIC, &xpad->odata_dma
);
+ GFP_
KERNEL, &xpad->odata_dma
);
if (!xpad->odata)
goto fail1;
@@
-729,7
+729,7
@@
static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
goto fail1;
xpad->idata = usb_buffer_alloc(udev, XPAD_PKT_LEN,
- GFP_
ATOMIC
, &xpad->idata_dma);
+ GFP_
KERNEL
, &xpad->idata_dma);
if (!xpad->idata)
goto fail1;