forked from Minki/linux
media: gspca: sq930x: use GFP_KERNEL in sd_dq_callback()
The context in which sd_dq_callback() is non atomic, there is even msleep() at the end of the function. There is no need to use GFP_ATOMIC here - use GFP_KERNEL instead. Cc: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
fc8af4fb3e
commit
2b89b73a70
@ -1044,7 +1044,7 @@ static void sd_dq_callback(struct gspca_dev *gspca_dev)
|
||||
v4l2_ctrl_g_ctrl(sd->gain));
|
||||
|
||||
gspca_dev->cam.bulk_nurbs = 1;
|
||||
ret = usb_submit_urb(gspca_dev->urb[0], GFP_ATOMIC);
|
||||
ret = usb_submit_urb(gspca_dev->urb[0], GFP_KERNEL);
|
||||
if (ret < 0)
|
||||
pr_err("sd_dq_callback() err %d\n", ret);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user