scst_vdisk: Follow-up for r7985

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7986 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-02-24 05:39:59 +00:00
parent 4bb9240e63
commit feb4185bcd

View File

@@ -3311,8 +3311,8 @@ static enum compl_status_e fileio_exec_async(struct vdisk_cmd_params *p)
} else {
ret = call_read_iter(fd, iocb, &iter);
}
if (p->async.kvec != p->async.small_kvec)
kfree(p->async.kvec);
if (p->async.bvec != p->async.small_bvec)
kfree(p->async.bvec);
if (ret != -EIOCBQUEUED)
fileio_async_complete(iocb, ret, 0);
/*