mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
scst, LUN replacement: Add a missing if-test
This was detected by smatch. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8040 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4697,7 +4697,8 @@ int scst_acg_repl_lun(struct scst_acg *acg, struct kobject *parent,
|
||||
extra_tgt_dev_list_entry) {
|
||||
scst_free_tgt_dev(tgt_dev);
|
||||
}
|
||||
scst_free_acg_dev(acg_dev);
|
||||
if (acg_dev)
|
||||
scst_free_acg_dev(acg_dev);
|
||||
|
||||
out:
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user