virtio_net: Fix memory leak in virtnet_rx_mod_work
authorDaniel Jurgens <danielj@nvidia.com>
Thu, 9 May 2024 18:36:34 +0000 (13:36 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 May 2024 01:20:07 +0000 (18:20 -0700)
commitb49bd37f0bfd7bbfedd54085d5ea4e854778d283
tree95bda538d2891588a09610e27ded45c4019f7f77
parent38155539a16ebb79dbb7a2e058138d70be68d245
virtio_net: Fix memory leak in virtnet_rx_mod_work

The pointer delcaration was missing the __free(kfree).

Fixes: ff7c7d9f5261 ("virtio_net: Remove command data from control_buf")
Reported-by: Jens Axboe <axboe@kernel.dk>
Closes: https://lore.kernel.org/netdev/0674ca1b-020f-4f93-94d0-104964566e3f@kernel.dk/
Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Tested-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/r/20240509183634.143273-1-danielj@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/virtio_net.c