mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
net: use the right variant of kfree
kvzalloc'ed memory should be kvfree'd.
Fixes: e817f85652
("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>
This commit is contained in:
parent
5896351ea9
commit
141b52a98a
1 changed files with 1 additions and 1 deletions
|
@ -7645,7 +7645,7 @@ static int netif_alloc_rx_queues(struct net_device *dev)
|
|||
/* 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue