]> git.proxmox.com Git - qemu.git/commit
scsi-generic: check the return value of bdrv_aio_ioctl in execute_command
authorPavel Hrdina <phrdina@redhat.com>
Wed, 29 May 2013 12:12:10 +0000 (14:12 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 18 Jun 2013 17:57:30 +0000 (12:57 -0500)
commit637d640fbbce498bd43a58b7a20b4190a1534751
tree88128afb0d12e79809034a81fd8633d720a94d36
parent9c4f5dd03a93f0049091c9049df94abd60ca10fc
scsi-generic: check the return value of bdrv_aio_ioctl in execute_command

This fixes the bug introduced by this commit ad54ae80c73f.
The bdrv_aio_ioctl() still could return null and we should return an error
in that case.

Cc: qemu-stable@nongnu.org
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit d836f8d35dc418e24c3b11e2ea67d361b867b650)

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