mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
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:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user