[ldv-project] [PATCH v2] w1: do not unlock unheld list_mutex in	__w1_remove_master_device()
    zbr at ioremap.net 
    zbr at ioremap.net
       
    Wed May  7 03:51:06 MSK 2014
    
    
  
Hi everyone
07.05.2014, 03:49, "David Fries" <David at Fries.net>:
> Acked-by: David Fries <david at fries.net>
>
> On Wed, May 07, 2014 at 01:26:04AM +0400, Alexey Khoroshilov wrote:
>
>>  w1_process_callbacks() expects to be called with dev->list_mutex held,
>>  but it is the fact only in w1_process(). __w1_remove_master_device()
>>  calls w1_process_callbacks() after it releases list_mutex.
>>
>>  The patch fixes __w1_remove_master_device() to acquire list_mutex
>>  for w1_process_callbacks().
>>
>>  Found by Linux Driver Verification project (linuxtesting.org).
>>
>>  Signed-off-by: Alexey Khoroshilov <khoroshilov at ispras.ru>
Thanks for this fix
Acked-by: Evgeniy Polyakov <zbr at ioremap.net>
    
    
More information about the ldv-project
mailing list