linux/drivers/media/common/saa7146
Fabian Frederick f35593fdc8 [media] saa7146: replace current->state by set_current_state()
Use helper functions to access current->state.
Direct assignments are prone to races and therefore buggy.

current->state = TASK_RUNNING can be replaced by __set_current_state()

Thanks to Peter Zijlstra for the exact definition of the problem.

Suggested-By: Peter Zijlstra <peterz@infradead.org>

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-03-03 11:15:42 -03:00
..
Kconfig
Makefile
saa7146_core.c [media] saa7146: turn bothersome error into a debug message 2014-11-03 14:45:28 -02:00
saa7146_fops.c [media] saa7146: remove return after BUG() 2014-09-26 06:47:57 -03:00
saa7146_hlp.c
saa7146_i2c.c
saa7146_vbi.c [media] saa7146: replace current->state by set_current_state() 2015-03-03 11:15:42 -03:00
saa7146_video.c [media] v4l2: remove g_chip_ident from bridge drivers where it is easy to do so 2013-06-17 08:36:35 -03:00