From: Marco Schluessler Date: Tue, 16 Oct 2007 11:25:42 +0000 (-0300) Subject: V4L/DVB (6356): "while (!ca->wakeup)" breaks the CAM initialisation X-Git-Tag: v2.6.24-rc1~66^2~7 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a39a8ed7beaafe02ce154dfd227f7d734a9f34dc;p=~emulex%2Finfiniband.git V4L/DVB (6356): "while (!ca->wakeup)" breaks the CAM initialisation Signed-off-by: Marco Schluessler Signed-off-by: Oliver Endriss Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/dvb-core/dvb_ca_en50221.c b/drivers/media/dvb/dvb-core/dvb_ca_en50221.c index 084a508a03d..89437fdab8b 100644 --- a/drivers/media/dvb/dvb-core/dvb_ca_en50221.c +++ b/drivers/media/dvb/dvb-core/dvb_ca_en50221.c @@ -972,7 +972,7 @@ static int dvb_ca_en50221_thread(void *data) /* main loop */ while (!kthread_should_stop()) { /* sleep for a bit */ - while (!ca->wakeup) { + if (!ca->wakeup) { set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(ca->delay); if (kthread_should_stop())