Skip to content

Commit

Permalink
V4L/DVB (5988): Fix OOP on videobuf-dvb when hibernating
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Simon Arlott authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 276e49a commit 4ebcb48
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/media/video/video-buf-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4ebcb48

Please sign in to comment.