提交 6eae9b0a 编写于 作者: O Oliver Neukum 提交者: Dmitry Torokhov

Input: xpad - don't use GFP_ATOMIC

GFP_ATOMIC should not be used when GFP_KERNEL can be used.
Signed-off-by: NOliver Neukum <oneukum@suse.de>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 99de0912
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册