projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
574312d
)
[media] s2255drv: atomic submit urb in completion handler
author
Pete Eberlein
<pete@sensoray.com>
Sat, 2 Apr 2011 00:21:26 +0000
(21:21 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 20 May 2011 12:28:31 +0000
(09:28 -0300)
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>
drivers/media/video/s2255drv.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/s2255drv.c
b/drivers/media/video/s2255drv.c
index 561909b65ce6b7b083dcad61e71afcbdae45a9de..01a98c0d3950166204fdac91b302c366b46a9772 100644
(file)
--- a/
drivers/media/video/s2255drv.c
+++ b/
drivers/media/video/s2255drv.c
@@
-2382,7
+2382,7
@@
static void read_pipe_completion(struct urb *purb)
read_pipe_completion, pipe_info);
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");
}
} else {