Skip to content
Commit c5b64fb7 authored by Prasad J Pandit's avatar Prasad J Pandit Committed by Michael Roth
Browse files

scsi: pvscsi: limit process IO loop to ring size



Vmware Paravirtual SCSI emulator while processing IO requests
could run into an infinite loop if 'pvscsi_ring_pop_req_descr'
always returned positive value. Limit IO loop to the ring size.

Cc: qemu-stable@nongnu.org
Reported-by: default avatarLi Qiang <liqiang6-s@360.cn>
Signed-off-by: default avatarPrasad J Pandit <pjp@fedoraproject.org>
Message-Id: <1473845952-30785-1-git-send-email-ppandit@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit d251157a)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 12be5cfe
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