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

Winkler, Tomas tomas.winkler at intel.com
Sun Dec 23 13:22:19 MSK 2012



> 
> 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-by: Alexey Khoroshilov <khoroshilov at ispras.ru>
Acked-by:   Tomas Winkler <tomas.winkler at intel.com>

Greg.  This should be eligible for 3.8.

Thanks
Tomas





More information about the ldv-project mailing list