Denis Oliver Kropp schrieb:
> Maxim Syrchin schrieb:
>> Hello all.
>>
>> fusion_entry_destroy() function removes entry while it being locked. It 
>> can have a lot of bad consequences (e.g. in case of deadlock detection 
>> code in kernel it causes segmentation fault). Possible fix for this case 
>> is attached, please take a look on it.
> 
> Thanks! I'll add it, though I think it should be allowed to destroy a 
> locked mutex. It's destroyed anyways, so why do the unlock?

I see, there's no explicit destroy function for mutexes, so the memory
is simply freed, in which case any reference to it, e.g. the deadlock
detection you mentioned, causes problems ;)

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to