atapi: Prioritize unknown cmd error over BCL error
commitf36aa12d2f2d5b5a877e38641183259e119e1568
authorJohn Snow <jsnow@redhat.com>
Fri, 13 Nov 2015 19:31:42 +0000 (13 14:31 -0500)
committerJohn Snow <jsnow@redhat.com>
Fri, 13 Nov 2015 19:31:42 +0000 (13 14:31 -0500)
treeb147635d246612b2e092199c1e76b36a08e7aa54
parentaf0e00db0e389dfa33d597f917a21454643bd314
atapi: Prioritize unknown cmd error over BCL error

If we don't know about the command at all, we need to prioritize
that failure above the zero byte-count-limit failure.

This fixes a failure in the sparc64 NetBSD 7.0 installer bootup.

Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: John Snow <jsnow@redhat.com>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-id: 1447095959-10046-3-git-send-email-jsnow@redhat.com
hw/ide/atapi.c