]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/ide/core.c: Prevent SIGSEGV during migration
authorDon Slutz <dslutz@verizon.com>
Mon, 17 Nov 2014 21:20:39 +0000 (16:20 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 7 Jan 2015 20:57:45 +0000 (14:57 -0600)
commitcd2f44cc3e75afd059d6a1b8a08ea6892bb8853b
tree24e3c90a5c90b18a535349055b528c06186afb61
parent844470158c61645f6448fe2fd3963080cead44db
hw/ide/core.c: Prevent SIGSEGV during migration

The other callers to blk_set_enable_write_cache() in this file
already check for s->blk == NULL.

Signed-off-by: Don Slutz <dslutz@verizon.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1416259239-13281-1-git-send-email-dslutz@verizon.com
Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 6b896ab261942f441a16836e3fa3c83f3f4488b9)

Conflicts:
hw/ide/core.c

*removed dependency on 4be746345

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