commit | df0bfe7501e9319546ea380d39674a4179e059c3 | [log] [tgz] |
---|---|---|
author | YueHaibing <yuehaibing@huawei.com> | Tue Mar 12 15:06:53 2019 +0800 |
committer | Michael S. Tsirkin <mst@redhat.com> | Sun May 12 13:11:35 2019 -0400 |
tree | d2525506a8657631ca828173406ff0a5704b2136 | |
parent | e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd [diff] |
virtio_ring: Fix potential mem leak in virtqueue_add_indirect_packed 'desc' should be freed before leaving from err handing path. Fixes: 1ce9e6055fa0 ("virtio_ring: introduce packed ring support") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> stable@vger.kernel.org