Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dde3433d authored by Li Qiang's avatar Li Qiang Committed by Greg Kroah-Hartman
Browse files

vfio/pci: Fix potential memory leak in vfio_msi_cap_len



[ Upstream commit 30ea32ab1951c80c6113f300fce2c70cd12659e4 ]

Free allocated vdev->msi_perm in error path.

Signed-off-by: default avatarLi Qiang <liq3ea@gmail.com>
Reviewed-by: default avatarEric Auger <eric.auger@redhat.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 86f886e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment