V4L/DVB (5988): Fix OOP on videobuf-dvb when hibernating
authorSimon Arlott <simon@fire.lp0.eu>
Thu, 9 Aug 2007 14:29:33 +0000 (11:29 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:04:45 +0000 (22:04 -0300)
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>
drivers/media/video/video-buf-dvb.c

index e617925ba31e495c79b70e552eb5cc040871208f..d2af82dc8faf3689bc479fdee5b9cf1e08e2a367 100644 (file)
@@ -56,7 +56,6 @@ static int videobuf_dvb_thread(void *data)
                                 struct videobuf_buffer, stream);
                list_del(&buf->stream);
                err = videobuf_waiton(buf,0,1);
-               BUG_ON(0 != err);
 
                /* no more feeds left or stop_feed() asked us to quit */
                if (0 == dvb->nfeeds)