linux-mainline/net
Julia Lawall 5daf47bb4e net/rds: Add missing mutex_unlock
Add a mutex_unlock missing on the error path.  In each case, whenever the
label out is reached from elsewhere in the function, mutex is not locked.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression E1;
@@

* mutex_lock(E1);
  <+... when != E1
  if (...) {
    ... when != E1
*   return ...;
  }
  ...+>
* mutex_unlock(E1);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Reviewed-by: Zach Brown <zach.brown@oracle.com>
Acked-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-05-29 00:18:48 -07:00
..
9p
802
8021q
appletalk
atm
ax25
bluetooth
bridge
caif caif: Bugfix - use MSG_TRUNC in receive 2010-05-23 23:57:43 -07:00
can
core skb: make skb_recycle_check() return a bool value 2010-05-29 00:12:13 -07:00
dcb
dccp net/dccp: expansion of error code size 2010-05-24 18:37:02 -07:00
decnet
dsa
econet
ethernet
ieee802154 ieee802154: Fix possible NULL pointer dereference in wpan_phy_alloc 2010-05-23 23:11:07 -07:00
ipv4 net: fix lock_sock_bh/unlock_sock_bh 2010-05-27 00:30:53 -07:00
ipv6 IPv6: fix Mobile IPv6 regression 2010-05-28 23:02:35 -07:00
ipx
irda
iucv net/iucv: Add missing spin_unlock 2010-05-26 21:09:51 -07:00
key
l2tp
lapb
llc
mac80211 mac80211: make a function static 2010-05-28 13:41:27 -04:00
netfilter xt_tee: use skb_dst_drop() 2010-05-28 03:41:17 -07:00
netlabel
netlink
netrom
packet
phonet Phonet: fix potential use-after-free in pep_sock_close() 2010-05-25 16:08:39 -07:00
rds net/rds: Add missing mutex_unlock 2010-05-29 00:18:48 -07:00
rfkill
rose
rxrpc
sched cls_cgroup: Store classid in struct sock 2010-05-24 00:12:34 -07:00
sctp
sunrpc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-05-20 21:04:44 -07:00
tipc
unix
wanrouter
wimax Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-05-20 21:04:44 -07:00
wireless cfg80211: add missing braces 2010-05-21 14:40:01 -04:00
x25
xfrm
compat.c
Kconfig
Makefile
nonet.c
socket.c cls_cgroup: Store classid in struct sock 2010-05-24 00:12:34 -07:00
sysctl_net.c
TUNABLE