unnecessary GFP_ATOMIC in xpad driver
Subsystems (2)
PATCH 1/1 unnecessary GFP_ATOMIC in xpad driver
GFP_ATOMIC should not be used when GFP_KERNEL can be used.
Signed-off-by Oliver Neukum <[email protected]>
---
drivers/input/joystick/xpad.c renamed from drivers/input/joystick/xpad.c.2 +2 -2
@@ -412,7 +412,7 @@ static int xpad_init_output(struct usb_ireturn 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;
@@ -636,7 +636,7 @@ static int xpad_probe(struct usb_interfa 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;
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 200804031350.16684.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org
Dmitry Torokhov
AppliedQuoted 4 lines · Oliver Neukum
GFP_ATOMICshould not be used whenGFP_KERNELcan be used.Signed-off-by Oliver Neukum <[email protected]>
Applied, thank you Oliver.
Signature · 5 lines
Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html