ahci: check for ncq prdtl overflow
commit3bcbe4aa803c1a41e5392ecac7b4fc3c99a42f89
authorJohn Snow <jsnow@redhat.com>
Sat, 4 Jul 2015 06:06:03 +0000 (4 02:06 -0400)
committerJohn Snow <jsnow@redhat.com>
Sat, 4 Jul 2015 06:06:03 +0000 (4 02:06 -0400)
tree4f8d7b83e2db75e5ee4caa7a4d26f17107cceb47
parenta55c8231d04e3023bc5c3da9290f01e7d6989a94
ahci: check for ncq prdtl overflow

Don't attempt the NCQ transfer if the PRDT we were given is not big
enough to perform the entire transfer.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1435016308-6150-5-git-send-email-jsnow@redhat.com
hw/ide/ahci.c