From 51fabc1228ee8dc7a2a951828cf38b471b97fa3f Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 27 Mar 2013 01:10:21 +0000 Subject: [PATCH] Correct debug check git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4821 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;