summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-01-10 10:20:01 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2018-01-10 12:06:17 +0100
commit141b52a98ab45a835ff1ea869414faccdc255a72 (patch)
tree87cbdcae90859b3189f00f34fa55456a6a7019c1 /net/core
parentbpf: fix verifier GPF in kmalloc failure path (diff)
downloadlinux-141b52a98ab45a835ff1ea869414faccdc255a72.tar.xz
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')
-rw-r--r--net/core/dev.c2
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;
}