diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index b4e4ae534..75aef551e 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -2472,7 +2472,7 @@ static enum compl_status_e vdisk_exec_inquiry(struct vdisk_cmd_params *p) resp_len = buf[4] + 5; } - sBUG_ON(resp_len >= INQ_BUF_SZ); + sBUG_ON(resp_len > INQ_BUF_SZ); if (length > resp_len) length = resp_len;