]> git.proxmox.com Git - qemu.git/commit
scsi-disk: do not complete canceled UNMAP requests
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 25 Feb 2013 11:14:34 +0000 (12:14 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 2 Apr 2013 15:54:35 +0000 (10:54 -0500)
commit99b1f39bd28be0cf8f0505a55a98fa9beda23fa2
tree03f860aaa58bb771120346bda97e1547813ea6f6
parentf23ab037c7ebd9ffe15526d0d2404194694ebad8
scsi-disk: do not complete canceled UNMAP requests

Canceled requests should never be completed, and doing that could cause
accesses to a NULL hba_private field.

Cc: qemu-stable@nongnu.org
Reported-by: Stefan Priebe <s.priebe@profihost.ag>
Tested-by: Stefan Priebe <s.priebe@profihost.ag>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit d0242eadc5bba4f3abe34bc5d536bbfb81aa9891)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi-disk.c