Browse Source

V4L/DVB (6356): "while (!ca->wakeup)" breaks the CAM initialisation

Signed-off-by: Marco Schluessler <marco@lordzodiac.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Marco Schluessler 17 years ago
parent
commit
a39a8ed7be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/media/dvb/dvb-core/dvb_ca_en50221.c

+ 1 - 1
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())