Tag: 773e82f6cdb026282ff7d26aaac291a5fa84ee3a

[SCSI] scsi_scan.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 that makes this change 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