diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-01-10 01:20:01 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-01-10 12:06:17 +0100 |
commit | 141b52a98ab45a835ff1ea869414faccdc255a72 (patch) | |
tree | 87cbdcae90859b3189f00f34fa55456a6a7019c1 /net/core/dev.c | |
parent | 5896351ea9360072f8bdd9eee186861a9d13db6d (diff) | |
download | linux-141b52a98ab45a835ff1ea869414faccdc255a72.tar.gz linux-141b52a98ab45a835ff1ea869414faccdc255a72.tar.bz2 linux-141b52a98ab45a835ff1ea869414faccdc255a72.zip |
net: use the right variant of kfree
kvzalloc'ed memory should be kvfree'd.
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>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index d7925ef8743d..852a54c769a3 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -7645,7 +7645,7 @@ err_rxq_info: /* Rollback successful reg's and free other resources */ while (i--) xdp_rxq_info_unreg(&rx[i].xdp_rxq); - kfree(dev->_rx); + kvfree(dev->_rx); dev->_rx = NULL; return err; } |