Skip to content
Commit df0bfe75 authored by YueHaibing's avatar YueHaibing Committed by Michael S. Tsirkin
Browse files

virtio_ring: Fix potential mem leak in virtqueue_add_indirect_packed



'desc' should be freed before leaving from err handing path.

Fixes: 1ce9e605 ("virtio_ring: introduce packed ring support")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
stable@vger.kernel.org
parent e93c9c99
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