diff options
author | Vasu Dev <vasu.dev@intel.com> | 2010-05-07 18:18:19 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-05-16 22:22:27 -0400 |
commit | 721cafafb66f57b461226aa197997f3e5b296f91 (patch) | |
tree | 6be6c819f0d1dd4d6230ccc3d7f53420cea6873f | |
parent | b3667f9177359b0594e4f2cd5cc01115f8c7e2af (diff) |
[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>
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index aba839e68014..7022a16b14f6 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -2056,7 +2056,7 @@ static int fcoe_create(const char *buffer, struct kernel_param *kp) | |||
2056 | */ | 2056 | */ |
2057 | if (THIS_MODULE->state != MODULE_STATE_LIVE) { | 2057 | if (THIS_MODULE->state != MODULE_STATE_LIVE) { |
2058 | rc = -ENODEV; | 2058 | rc = -ENODEV; |
2059 | goto out_nodev; | 2059 | goto out_nomod; |
2060 | } | 2060 | } |
2061 | #endif | 2061 | #endif |
2062 | 2062 | ||