]> git.ipfire.org Git - thirdparty/qemu.git/commit
atapi: classify read_cd as conditionally returning data
authorJohn Snow <jsnow@redhat.com>
Mon, 14 Nov 2016 16:15:54 +0000 (11:15 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 21 Dec 2016 01:33:05 +0000 (19:33 -0600)
commit5f20161cf30a7f4e543578177887c9c02747ce27
tree43576361205c5c39dad8620810a35cbd9e8dcf58
parent05838b4688393f3cf9949aa1f707a35618b725c6
atapi: classify read_cd as conditionally returning data

For the purposes of byte_count_limit verification, add a new flag that
identifies read_cd as sometimes returning data, then check the BCL in
its command handler after we know that it will indeed return data.

Reported-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1477970211-25754-2-git-send-email-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
(cherry picked from commit e7bd708ec85e40fd51569bb90c52d6613ffd8f45)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ide/atapi.c