[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)
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>

No differences found