mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
[media] s2255drv: atomic submit urb in completion handler
An usb_submit_urb should be atomic in a completion handler. This fixes "BUG: scheduling while atomic" messages. Signed-off-by: Pete Eberlein <pete@sensoray.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
574312d8ce
commit
a1b4c86b2b
@ -2382,7 +2382,7 @@ static void read_pipe_completion(struct urb *purb)
|
|||||||
read_pipe_completion, pipe_info);
|
read_pipe_completion, pipe_info);
|
||||||
|
|
||||||
if (pipe_info->state != 0) {
|
if (pipe_info->state != 0) {
|
||||||
if (usb_submit_urb(pipe_info->stream_urb, GFP_KERNEL)) {
|
if (usb_submit_urb(pipe_info->stream_urb, GFP_ATOMIC)) {
|
||||||
dev_err(&dev->udev->dev, "error submitting urb\n");
|
dev_err(&dev->udev->dev, "error submitting urb\n");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user