[NET]: lockdep classes in register_netdevice
authorJarek Poplawski <jarkao2@o2.pl>
Wed, 16 May 2007 05:46:18 +0000 (22:46 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 17 May 2007 21:20:28 +0000 (14:20 -0700)
commit723e98b79c5f2dd97ce559506362844b1a086f80
tree98d3ee07cc48e581d1ef2fb9a5fa2a86eb72a96f
parent0479ea0eab197b3e5d4c731f526c02e5e3fbfbd0
[NET]: lockdep classes in register_netdevice

After initializing dev->_xmit_lock register_netdevice()
sets lockdep class according to dev->type.

Idea of this patch - by David Miller.

Reported & tested by: "Yuriy N. Shkandybin" <jura@netams.com>
Signed-off-by: Jarek Poplawski <jarkao2@o2.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c