提交 6f06e3a7 编写于 作者: H Hillf Danton 提交者: James Bottomley

[SCSI] libfc: release exchg cache

If fail to create workqueue, the newly created cache for exchg has to be
released.
Signed-off-by: NHillf Danton <dhillf@gmail.com>
Reviewed-by: NVasu Dev <vasu.dev@intel.com>
Signed-off-by: NRobert Love <robert.w.love@intel.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 688fd364
...@@ -2465,8 +2465,11 @@ int fc_setup_exch_mgr(void) ...@@ -2465,8 +2465,11 @@ int fc_setup_exch_mgr(void)
fc_exch_workqueue = create_singlethread_workqueue("fc_exch_workqueue"); fc_exch_workqueue = create_singlethread_workqueue("fc_exch_workqueue");
if (!fc_exch_workqueue) if (!fc_exch_workqueue)
return -ENOMEM; goto err;
return 0; return 0;
err:
kmem_cache_destroy(fc_em_cachep);
return -ENOMEM;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册