Skip to content
Commit 54c26b73 authored by John Snow's avatar John Snow Committed by Michael Roth
Browse files

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: default avatarJohn Snow <jsnow@redhat.com>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Message-id: 1474575040-32079-2-git-send-email-jsnow@redhat.com
Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
(cherry picked from commit df403bc5)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent f5436d1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment