diff options
author | Andreas Oberritter <obi@linuxtv.org> | 2011-08-04 12:33:13 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-03 08:47:33 -0300 |
commit | 5c9f480bdb584944b5af390ccdd8c3e586bdafdb (patch) | |
tree | f7db6b8006dcebb14e6dca38cb2175afccc561f4 /drivers | |
parent | 56ce5ac41af87c157cf4c6e4e6fec31d7d48025e (diff) | |
download | linux-stable-5c9f480bdb584944b5af390ccdd8c3e586bdafdb.tar.gz linux-stable-5c9f480bdb584944b5af390ccdd8c3e586bdafdb.tar.bz2 linux-stable-5c9f480bdb584944b5af390ccdd8c3e586bdafdb.zip |
[media] DVB: dvb_frontend: avoid possible race condition on first event
enqueued before the frontend thread wakes up.
Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index 23d79d0f25ee..45ea843d93de 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -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; |