mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
conf: fix logic error for scsi units
Introduced in c8007fdc5d
, it should use 'greater than max' instead of
'equal or greater than max' for the condition of checking invalid scsi
unit.
Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
1fbd80c42a
commit
0e37372291
@ -4850,7 +4850,7 @@ virDomainSCSIDriveAddressIsUsed(const virDomainDef *def,
|
||||
break;
|
||||
}
|
||||
|
||||
if (max != -1 && addr->unit >= max)
|
||||
if (max != -1 && addr->unit > max)
|
||||
return true;
|
||||
if (reserved != -1 && addr->unit == reserved)
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user