net/xen-netfront: only clean up queues if present
authorChas Williams <3chas3@gmail.com>
Wed, 19 Aug 2015 23:14:20 +0000 (19:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Aug 2015 22:56:12 +0000 (15:56 -0700)
commit9a873c71e91cabf4c10fd9bbd8358c22deaf6c9e
tree67675aa39ba853e69550a74fe96968510cb46d2e
parentf5117ce4f6a16fa2a02ceff9c337cfffca8b75f2
net/xen-netfront: only clean up queues if present

If you simply load and unload the module without starting the interfaces,
the queues are never created and you get a bad pointer dereference.

Signed-off-by: Chas Williams <3chas3@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c