scst_vdisk: Add a consistency check

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-02-11 00:05:44 +00:00
parent 4d84d93d82
commit 1ba9b34529

View File

@@ -3322,6 +3322,8 @@ static enum compl_status_e fileio_exec_async(struct vdisk_cmd_params *p)
length = scst_get_buf_next(cmd, &address);
}
WARN_ON_ONCE(kvec - p->async.kvec != scst_get_buf_count(cmd));
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)
iov_iter_kvec(&iter, dir, p->async.kvec, kvec - p->async.kvec, total);
#else