Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/virtio: fix dangling pointer on failure
[ upstream commit 7dee8c7 ] When eth_virtio_dev_init() is cleaning up, it does not correctly set the mac_addrs variable to NULL, which will lead to a double free. Found during unit-test fixes. Fixes: 43d1876 ("net/virtio: fix memory leak on failure") Reported-by: Michael Santana <msantana@redhat.com> Signed-off-by: Aaron Conole <aconole@redhat.com> Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
- Loading branch information