]> git.ipfire.org Git - thirdparty/qemu.git/commit
ahci: clear aiocb in ncq_cb
authorJohn Snow <jsnow@redhat.com>
Mon, 26 Sep 2016 18:33:37 +0000 (14:33 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 2 Nov 2016 21:41:36 +0000 (16:41 -0500)
commit54c26b7340a6d76278a6c182afd6861626068b4a
tree34aff95b0589b561b3c5b5874385c5e3e5f7e861
parentf5436d1daba9d5c50c9dc7240e9561e429c5aac4
ahci: clear aiocb in ncq_cb

Similar to existing fixes for IDE (87ac25fd) and ATAPI (7f951b2d), the
AIOCB must be cleared in the callback. Otherwise, we may accidentally
try to reset a dangling pointer in bdrv_aio_cancel() from a port reset.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1474575040-32079-2-git-send-email-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
(cherry picked from commit df403bc58859c893ebd0accda07678e84d15dc5d)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ide/ahci.c