summaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-05-26 05:56:48 +0000
committerDavid S. Miller <davem@davemloft.net>2010-05-26 21:09:51 -0700
commita56635a56f2afb3d22d9ce07e8f8d69537416b2d (patch)
tree96ff391bccbc702cf2c9d74eecb055c32fb59a49 /include/net/sock.h
parent23ecc4bde21f0ccb38f4b53cadde7fc5d67d68e3 (diff)
downloadblackbird-op-linux-a56635a56f2afb3d22d9ce07e8f8d69537416b2d.tar.gz
blackbird-op-linux-a56635a56f2afb3d22d9ce07e8f8d69537416b2d.zip
net/iucv: Add missing spin_unlock
Add a spin_unlock missing on the error path. There seems like no reason why the lock should continue to be held if the kzalloc fail. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression E1; @@ * spin_lock(E1,...); <+... when != E1 if (...) { ... when != E1 * return ...; } ...+> * spin_unlock(E1,...); // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud