Tag: 68905eb4dc9c691ba09df767ac0641395025cef6

drivers/net/ehea/ehea_main.c: Release mutex in error handling code

Author: Julia Lawall <julia@diku.dk> The mutex is released on a successful return, so it would seem that it should be released on an error return as well. The semantic patch finds this problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // @@ expression l; @@ mutex_lock(l); … when != mutex_unlock(l) when any when strict ( if (…) { …

Continue reading