Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c9f480b authored by Andreas Oberritter's avatar Andreas Oberritter Committed by Mauro Carvalho Chehab
Browse files

[media] DVB: dvb_frontend: avoid possible race condition on first event



  enqueued before the frontend thread wakes up.

Signed-off-by: default avatarAndreas Oberritter <obi@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 56ce5ac4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1891,8 +1891,8 @@ static int dvb_frontend_ioctl_legacy(struct file *file,
		/* Request the search algorithm to search */
		fepriv->algo_status |= DVBFE_ALGO_SEARCH_AGAIN;

		dvb_frontend_wakeup(fe);
		dvb_frontend_add_event(fe, 0);
		dvb_frontend_wakeup(fe);
		fepriv->status = 0;
		err = 0;
		break;