浏览代码

[SCSI] fcoe: fixes wrong error exit in fcoe_create

fcoe_create exits using out_nodev label when module is not
yet LIVE but this exit path unlocks the rtnl_lock though
rtnl lock was not held in this case.

So this patch replaces out_nodev with out_nomod to exit
w/o unlocking rtnl_lock.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Vasu Dev 15 年之前
父节点
当前提交
721cafafb6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/scsi/fcoe/fcoe.c

+ 1 - 1
drivers/scsi/fcoe/fcoe.c

@@ -2056,7 +2056,7 @@ static int fcoe_create(const char *buffer, struct kernel_param *kp)
 	 */
 	 */
 	if (THIS_MODULE->state != MODULE_STATE_LIVE) {
 	if (THIS_MODULE->state != MODULE_STATE_LIVE) {
 		rc = -ENODEV;
 		rc = -ENODEV;
-		goto out_nodev;
+		goto out_nomod;
 	}
 	}
 #endif
 #endif