Correct debug check

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4821 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-03-27 01:10:21 +00:00
parent f90ec82b2e
commit 51fabc1228

View File

@@ -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;