]> err.no Git - linux-2.6/commit
[ATM]: fix possible recursive locking in skb_migrate()
authorArjan van de Ven <arjan@linux.intel.com>
Sat, 8 Jul 2006 20:30:52 +0000 (13:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Jul 2006 20:30:52 +0000 (13:30 -0700)
commit1252ecf63f77ea147bd40f5462c7d9e3d3ae2815
tree15f6fd4d0672ae3c0dc371394aa92874fd619dfd
parent00181fc94648b4bb30d30ef95506055105316051
[ATM]: fix possible recursive locking in skb_migrate()

ok this is a real potential deadlock in a way, it takes two locks of 2
skbuffs without doing any kind of lock ordering; I think the following
patch should fix it. Just sort the lock taking order by address of the
skb.. it's not pretty but it's the best this can do in a minimally
invasive way.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/ipcommon.c