The vendor string is null-terminated by the time scsi_init_drive looks
at it, so it is incorrect to pad the memcmp argument with spaces.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
// but some old USB keys only support a very small subset of SCSI which
// does not even include the MODE SENSE command!
//
- if (! CONFIG_COREBOOT && memcmp(vendor, "QEMU ", 8) == 0) {
+ if (! CONFIG_COREBOOT && memcmp(vendor, "QEMU", 5) == 0) {
struct cdbres_mode_sense_geom geomdata;
ret = cdb_mode_sense_geom(&dop, &geomdata);
if (ret == 0) {