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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue