aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2008-07-22 14:18:10 -0700
committerRoland Dreier <rolandd@cisco.com>2008-07-22 14:18:10 -0700
commit1a867c33bb65f2921351a9bdd98548bb96f0ff8c (patch)
tree9daeb99a600105643d737be1b22bb916e3e6c5b0 /kernel
parentIB/ehca: Use default value for Local CA ACK Delay if FW returns 0 (diff)
downloadlinux-rng-1a867c33bb65f2921351a9bdd98548bb96f0ff8c.tar.xz
linux-rng-1a867c33bb65f2921351a9bdd98548bb96f0ff8c.zip
IB/ehca: Release mutex in error path of alloc_small_queue_page()
The pd->lock mutex is released on a successful return, so 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: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions