RE: [PATCH] mei: fix mismatch in mutex unlock-lock in mei_amthif_read()

2012-12-23 Thread Winkler, Tomas
> > Users of mei_amthif_read() expect it leaves dev->device_lock held, while > there is a path where mei_amthif_read() unlocks device_lock and returns - > ERESTARTSYS. > > The patch move code locking device_lock back before the return. > > Found by Linux Driver Verification project (linuxtesti

[PATCH] mei: fix mismatch in mutex unlock-lock in mei_amthif_read()

2012-12-21 Thread Alexey Khoroshilov
Users of mei_amthif_read() expect it leaves dev->device_lock held, while there is a path where mei_amthif_read() unlocks device_lock and returns -ERESTARTSYS. The patch move code locking device_lock back before the return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off