net: init ingress queue
authorChangli Gao <xiaosuo@gmail.com>
Sat, 4 Dec 2010 02:31:41 +0000 (02:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Dec 2010 17:43:27 +0000 (09:43 -0800)
commitaa9421041128abb4d269ee1dc502ff65fb3b7d69
treeb464784fb21d80f03bc79ab1c5d3eb813d128d29
parenta1044e36e457fb6dbdf90ce756d578b251d99b5e
net: init ingress queue

The dev field of ingress queue is forgot to initialized, then NULL
pointer dereference happens in qdisc_alloc().

Move inits of tx queues to netif_alloc_netdev_queues().

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c