virtio-vdpa: Fix cpumask memory leak in virtio_vdpa_find_vqs()
authorGal Pressman <gal@nvidia.com>
Wed, 26 Jul 2023 19:10:07 +0000 (22:10 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 10 Aug 2023 19:24:28 +0000 (15:24 -0400)
commitdf9557046440b0a62250fee3169a8f6a139f55a6
tree31235a71bb258724aeea97bf7ca7cd7bb7371a50
parent7ca26efb09a1543fddb29308ea3b63b66cb5d3ee
virtio-vdpa: Fix cpumask memory leak in virtio_vdpa_find_vqs()

Free the cpumask allocated by create_affinity_masks() before returning
from the function.

Fixes: 3dad56823b53 ("virtio-vdpa: Support interrupt affinity spreading mechanism")
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Message-Id: <20230726191036.14324-1-dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Xie Yongji <xieyongji@bytedance.com>
drivers/virtio/virtio_vdpa.c