Commit a561a8ea authored by Wei Yongjun's avatar Wei Yongjun Committed by Martin K. Petersen

fcoe: add missing destroy_workqueue() on error in fcoe_init()

Add the missing destroy_workqueue() before return from fcoe_init() in
the fcoe transport register failed error handling case.
Signed-off-by: default avatarWei Yongjun <>
Acked-by: default avatarJohannes Thumshirn <>
Signed-off-by: default avatarMartin K. Petersen <>
parent 22466da5
......@@ -2495,7 +2495,7 @@ static int __init fcoe_init(void)
if (rc) {
printk(KERN_ERR "failed to register an fcoe transport, check "
"if libfcoe is loaded\n");
return rc;
goto out_destroy;
......@@ -2518,6 +2518,7 @@ static int __init fcoe_init(void)
return rc;
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