[media] DVB: dvb_frontend: update locking in dvb_frontend_{add, get_event}
authorAndreas Oberritter <obi@linuxtv.org>
Thu, 4 Aug 2011 15:33:15 +0000 (12:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 3 Sep 2011 11:49:07 +0000 (08:49 -0300)
commit77b1e2fbbdfa0ee5cdf6c928b711493a3738468e
tree01ea38d60c3e1e32589eb0151f63700e35e28cc8
parent20640bea87c31a823dba3756b1a5248197f0905f
[media] DVB: dvb_frontend: update locking in dvb_frontend_{add, get_event}

  - fepriv->parameters_out isn't protected by events->mtx, so
    move the call to fe->ops.get_frontend out of the locked area.
  - move the assignment of e->status into the locked area.

  - use direct assignment instead of memcpy.

  - use mutex_lock instead of mutex_lock_interruptible, because
    all code paths protected by this mutex won't block.

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvb_frontend.c