Revert "megasas: remove useless check for cmd->frame"
commit421cc3e7e89cb807d3c5f6de486abb2167c8e792
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 8 Sep 2016 15:42:53 +0000 (8 17:42 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Sep 2016 17:09:43 +0000 (13 19:09 +0200)
treeb21265103138675023027fa14b7ccb9104a9604f
parent90f998f5f4267a0c22e983f533d19b9de1849283
Revert "megasas: remove useless check for cmd->frame"

This reverts commit 8cc46787b5b58f01a11c919c7ff939ed009e27fc.
It turns out that cmd->frame can be NULL and thus the commit
can cause a SIGSEGV

Reported-by: Holger Schranz <holger@fam-schranz.de>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/megasas.c