diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-03-12 15:06:53 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-16 19:35:39 +0200 |
commit | 037ca765796fec2a7becc14c75c0ebcfb57be0c0 (patch) | |
tree | 5c3f346acb5f9b110217106ba5559d75ffd0710b /drivers/pci/controller/pci-hyperv.c | |
parent | 665c4bdd5736977cb01ee6f5efd76f6df9d6b303 (diff) |
virtio_ring: Fix potential mem leak in virtqueue_add_indirect_packed
commit df0bfe7501e9319546ea380d39674a4179e059c3 upstream.
'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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/controller/pci-hyperv.c')
0 files changed, 0 insertions, 0 deletions