]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Tue, 6 Oct 2015 16:13:57 +0000 (09:13 -0700)
commit2fbe00350aa495063aa12e8c1958bc9d4ae5f60c
treef5192b7eb6165a1e5c3c00903cc31edb465cee4e
parent40b0bca4eef618182402cca872e99a7e511be1a5
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.

Acked-by: Konrad Rzeszutek Wilk <Konrad.wilk@oracle>
Signed-off-by: Chas Williams <3chas3@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 9a873c71e91cabf4c10fd9bbd8358c22deaf6c9e)
Signed-off-by: Annie Li <annie.li@oracle.com>
drivers/net/xen-netfront.c