summaryrefslogtreecommitdiff
path: root/drivers/Makefile
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2008-07-21 07:58:30 (GMT)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-26 19:14:56 (GMT)
commit773e82f6cdb026282ff7d26aaac291a5fa84ee3a (patch)
tree755c98045690c2b6f4c588384cb46267bf487bf2 /drivers/Makefile
parent12265709ac6e197f4d40d9ec1fd3af97b4196a35 (diff)
downloadlinux-fsl-qoriq-773e82f6cdb026282ff7d26aaac291a5fa84ee3a.tar.xz
[SCSI] scsi_scan.c: Release mutex in error handling code
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/) // <smpl> @@ expression l; @@ mutex_lock(l); ... when != mutex_unlock(l) when any when strict ( if (...) { ... when != mutex_unlock(l) + mutex_unlock(l); return ...; } | mutex_unlock(l); ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/Makefile')
0 files changed, 0 insertions, 0 deletions