summaryrefslogtreecommitdiff
path: root/drivers/media/video/uvc/uvc_status.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@skynet.be>2008-07-04 00:35:26 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 07:17:40 -0300
commit291358785cde5536d98a4f3cae77efd8ca626486 (patch)
tree1357726b2b26e99119ced788347071b5a41f2ca4 /drivers/media/video/uvc/uvc_status.c
parent233548a2fd934a0220db8b1521c0bc88c82e5e53 (diff)
downloadlwn-291358785cde5536d98a4f3cae77efd8ca626486.tar.gz
lwn-291358785cde5536d98a4f3cae77efd8ca626486.zip
V4L/DVB (8208): uvcvideo: Use GFP_NOIO when allocating memory during resume
The swap device might still be asleep, so memory allocated in the resume handler must use GFP_NOIO. Thanks to Oliver Neukum for catching and reporting this bug. Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/uvc/uvc_status.c')
-rw-r--r--drivers/media/video/uvc/uvc_status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_status.c b/drivers/media/video/uvc/uvc_status.c
index be9084e5eace..06b47980ed98 100644
--- a/drivers/media/video/uvc/uvc_status.c
+++ b/drivers/media/video/uvc/uvc_status.c
@@ -203,5 +203,5 @@ int uvc_status_resume(struct uvc_device *dev)
if (dev->int_urb == NULL)
return 0;
- return usb_submit_urb(dev->int_urb, GFP_KERNEL);
+ return usb_submit_urb(dev->int_urb, GFP_NOIO);
}