aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/video-buf-dvb.c
diff options
context:
space:
mode:
authorSimon Arlott <simon@fire.lp0.eu>2007-08-09 10:29:33 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:04:45 -0400
commit4ebcb48da1eace49ef5f2d83a91984085c6d702d (patch)
tree723e27aed421d5d6e1ec1c19ccde1666923feeb0 /drivers/media/video/video-buf-dvb.c
parent276e49a01a7e6c4a7bfb78618cf2f5befbf9f5de (diff)
V4L/DVB (5988): Fix OOP on videobuf-dvb when hibernating
Since videobuf_waiton is called with intr=1, it can return -EINTR and therefore err may be non-zero. This happens when the system goes into the standby state. Without the BUG() occurring, there's no problem with standby mode while DVB is being used. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/video-buf-dvb.c')
-rw-r--r--drivers/media/video/video-buf-dvb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/video/video-buf-dvb.c b/drivers/media/video/video-buf-dvb.c
index e617925ba31e..d2af82dc8faf 100644
--- a/drivers/media/video/video-buf-dvb.c
+++ b/drivers/media/video/video-buf-dvb.c
@@ -56,7 +56,6 @@ static int videobuf_dvb_thread(void *data)
56 struct videobuf_buffer, stream); 56 struct videobuf_buffer, stream);
57 list_del(&buf->stream); 57 list_del(&buf->stream);
58 err = videobuf_waiton(buf,0,1); 58 err = videobuf_waiton(buf,0,1);
59 BUG_ON(0 != err);
60 59
61 /* no more feeds left or stop_feed() asked us to quit */ 60 /* no more feeds left or stop_feed() asked us to quit */
62 if (0 == dvb->nfeeds) 61 if (0 == dvb->nfeeds)