scst: Fix a memory leak

Fix the following Coverity complaint:

CID 344744 (#1 of 1): Resource leak (RESOURCE_LEAK)5. leaked_storage: Variable sioc going out of scope leaks the storage it points to.




git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8567 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-08-25 22:55:20 +00:00
parent 9e0914d470
commit 59641c1d5f
+2 -1
View File
@@ -8650,7 +8650,8 @@ int scst_scsi_exec_async(struct scst_cmd *cmd, void *data,
}
rq->next_rq = next_rq;
#else
return -EOPNOTSUPP;
res = -EOPNOTSUPP;
goto out_free_sioc;
#endif
} else {
rq = blk_map_kern_sg(q, cmd->sg, cmd->sg_cnt, gfp, reading);