mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
scif_sas_controller: Fix inverted logic range check
PR: 217742 Submitted by: Svyatoslav <razmyslov at viva64.com> Sponsored by: Viva64 (PVS-Studio)
This commit is contained in:
parent
49b6a5d60a
commit
da1d1cd3fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315205
|
@ -528,7 +528,7 @@ SCI_STATUS scif_user_parameters_set(
|
|||
if (scif_parms->sas.is_sata_ncq_enabled != 1 && scif_parms->sas.is_sata_ncq_enabled != 0)
|
||||
return SCI_FAILURE_INVALID_PARAMETER_VALUE;
|
||||
|
||||
if (scif_parms->sas.max_ncq_depth < 1 && scif_parms->sas.max_ncq_depth > 32)
|
||||
if (scif_parms->sas.max_ncq_depth < 1 || scif_parms->sas.max_ncq_depth > 32)
|
||||
return SCI_FAILURE_INVALID_PARAMETER_VALUE;
|
||||
|
||||
if (scif_parms->sas.is_sata_standby_timer_enabled != 1
|
||||
|
|
Loading…
Reference in a new issue