net: free RX queue structures
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 10 Jan 2018 09:20:02 +0000 (01:20 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 10 Jan 2018 11:06:17 +0000 (12:06 +0100)
commit82aaff2f63443e1d6cc4a186ed9c2a5718123906
treea6dae59bfd56945e9d909abaef526f62e657853c
parent141b52a98ab45a835ff1ea869414faccdc255a72
net: free RX queue structures

Looks like commit e817f85652c1 ("xdp: generic XDP handling of
xdp_rxq_info") replaced kvfree(dev->_rx) in free_netdev() with
a call to netif_free_rx_queues() which doesn't actually free
the rings?

While at it remove the unnecessary temporary variable.

Fixes: e817f85652c1 ("xdp: generic XDP handling of xdp_rxq_info")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/core/dev.c