static int ll_options(char *options, struct super_block *sb)
{
struct ll_sb_info *sbi = ll_s2sbi(sb);
- char *s2, *s1, *opts;
+ char *s2, *s1, *opts, *orig_opts;
int err = 0;
ENTRY;
RETURN(0);
/* Don't stomp on lmd_opts */
- opts = kstrdup(options, GFP_KERNEL);
+ orig_opts = opts = kstrdup(options, GFP_KERNEL);
if (!opts)
RETURN(-ENOMEM);
s1 = opts;
break;
}
}
- kfree(opts);
+ kfree(orig_opts);
RETURN(err);
}