diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2013-01-25 18:34:16 +0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-01-30 14:35:55 +0400 |
commit | c98d3683ce675d689121147ed00e7c4af4737518 (patch) | |
tree | ccb2b54c7befb859908b30c1653cae2774314bea /drivers/virtio/virtio_pci.c | |
parent | 15bc8d8457875f495c59d933b05770ba88d1eacb (diff) | |
download | linux-c98d3683ce675d689121147ed00e7c4af4737518.tar.xz |
s390/virtio-ccw: Fix setup_vq error handling.
virtio_ccw_setup_vq() failed to unwind correctly on errors. In
particular, it failed to delete the virtqueue on errors, leading to
list corruption when virtio_ccw_del_vqs() iterated over a virtqueue
that had not been added to the vcdev's list.
Fix this with redoing the error unwinding in virtio_ccw_setup_vq(),
using a single path for all errors.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'drivers/virtio/virtio_pci.c')
0 files changed, 0 insertions, 0 deletions