]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: lustre: Fix an error handling path in 'client_common_fill_super()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 12 May 2018 06:33:05 +0000 (08:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 11:55:06 +0000 (13:55 +0200)
According to error handling path before and after this one, we should go
to 'out_md_fid' here, instead of 'out_md', if 'obd_connect()' fails.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/llite_lib.c

index 60dbe888e3369680f2502efef2a81d480e7d8567..83eb2da2c9ad040afa937b3877f75669364722f3 100644 (file)
@@ -400,11 +400,11 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt)
                LCONSOLE_ERROR_MSG(0x150,
                                   "An OST (dt %s) is performing recovery, of which this client is not a part.  Please wait for recovery to complete, abort, or time out.\n",
                                   dt);
-               goto out_md;
+               goto out_md_fid;
        } else if (err) {
                CERROR("%s: Cannot connect to %s: rc = %d\n",
                       sbi->ll_dt_exp->exp_obd->obd_name, dt, err);
-               goto out_md;
+               goto out_md_fid;
        }
 
        sbi->ll_dt_exp->exp_connect_data = *data;