* [PATCH 2.6.19-rc1] drivers/media/video/se401.c: stop streaming if no memory available.
@ 2006-10-11 7:13 Amit Choudhary
0 siblings, 0 replies; only message in thread
From: Amit Choudhary @ 2006-10-11 7:13 UTC (permalink / raw)
To: Linux Kernel
Description: Stop streaming if no memory available. function: se401_start_stream(), file: drivers/media/video/se401.c.
Signed-off-by: Amit Choudhary <amit2030@gmail.com>
diff --git a/drivers/media/video/se401.c b/drivers/media/video/se401.c
index 7d598e0..779bb99 100644
--- a/drivers/media/video/se401.c
+++ b/drivers/media/video/se401.c
@@ -474,8 +474,11 @@ static int se401_start_stream(struct usb
for (i=0; i<SE401_NUMSBUF; i++) {
urb=usb_alloc_urb(0, GFP_KERNEL);
- if(!urb)
+ /* No memory, stop streaming */
+ if(!urb) {
+ se401_stop_stream(se401);
return -ENOMEM;
+ }
usb_fill_bulk_urb(urb, se401->dev,
usb_rcvbulkpipe(se401->dev, SE401_VIDEO_ENDPOINT),
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-11 7:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-11 7:13 [PATCH 2.6.19-rc1] drivers/media/video/se401.c: stop streaming if no memory available Amit Choudhary
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox