Re: [PATCH v4 2/3] vt: fix locking around vt_bind/vt_unbind

2014-12-15 Thread Daniel Vetter
On Tue, Dec 16, 2014 at 12:16:00AM +0200, Imre Deak wrote: > Currently vt_bind and vt_unbind access at least the con_driver object > and registered_con_driver array without holding the console lock. Fix > this by locking around the whole function in each case. > > Signed-off-by: Imre Deak >

[PATCH v4 2/3] vt: fix locking around vt_bind/vt_unbind

2014-12-15 Thread Imre Deak
Currently vt_bind and vt_unbind access at least the con_driver object and registered_con_driver array without holding the console lock. Fix this by locking around the whole function in each case. Signed-off-by: Imre Deak Reviewed-by: Peter Hurley --- drivers/tty/vt/vt.c | 11 +-- 1

[PATCH v4 2/3] vt: fix locking around vt_bind/vt_unbind

2014-12-15 Thread Imre Deak
Currently vt_bind and vt_unbind access at least the con_driver object and registered_con_driver array without holding the console lock. Fix this by locking around the whole function in each case. Signed-off-by: Imre Deak imre.d...@intel.com Reviewed-by: Peter Hurley pe...@hurleysoftware.com ---

Re: [PATCH v4 2/3] vt: fix locking around vt_bind/vt_unbind

2014-12-15 Thread Daniel Vetter
On Tue, Dec 16, 2014 at 12:16:00AM +0200, Imre Deak wrote: Currently vt_bind and vt_unbind access at least the con_driver object and registered_con_driver array without holding the console lock. Fix this by locking around the whole function in each case. Signed-off-by: Imre Deak