Commit 6f06e3a7 authored by Hillf Danton's avatar Hillf Danton Committed by 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: default avatarHillf Danton <dhillf@gmail.com>
Reviewed-by: default avatarVasu Dev <vasu.dev@intel.com>
Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment