diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2018-10-23 00:46:21 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-11-06 21:35:05 +0100 |
| commit | 6c219fc8a112fc69b29f59ea2c7865717ff6e3e0 (patch) | |
| tree | 33a033ea082dc7f72f99597762be7ef140b89cae /hw/scsi/scsi-disk.c | |
| parent | e58ccf039650065a9442de43c9816f81e88f27f6 (diff) | |
| download | focaccia-qemu-6c219fc8a112fc69b29f59ea2c7865717ff6e3e0.tar.gz focaccia-qemu-6c219fc8a112fc69b29f59ea2c7865717ff6e3e0.zip | |
scsi-generic: keep VPD page list sorted
Block limits emulation is just placing 0xb0 as the final byte of the VPD pages list. However, VPD page numbers must be sorted, so change that to an in-place insert. Since I couldn't find any disk that triggered the loop more than once, this was tested by adding manually 0xb1 at the end of the list and checking that 0xb0 was added before. Reported-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi/scsi-disk.c')
0 files changed, 0 insertions, 0 deletions