KVM: s390: virtio_ccw: reset errors for new I/O.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 4 Apr 2013 08:25:06 +0000 (10:25 +0200)
committerGleb Natapov <gleb@redhat.com>
Sun, 7 Apr 2013 10:13:47 +0000 (13:13 +0300)
commit99437a2782730ec8c7e6cfebb6143d00b091e4a8
treeb68e32dbff273f8f8613efd734c4b46849231efc
parent450e0b411f56db9839c9725d4d49e70e24f87ba3
KVM: s390: virtio_ccw: reset errors for new I/O.

ccw_io_helper neglected to reset vcdev->err after a new channel
program had been successfully started, resulting in stale errors
delivered after one I/O failed. Reset the error after a new
channel program has been successfully started with no old I/O
pending.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
drivers/s390/kvm/virtio_ccw.c