X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fhfsplus%2Foptions.c;h=9997cbf8beb50ece6abfa28dc18f3223037eab01;hb=13a6ddb08e58a1bd344da7898c4e2f13bdf18c2f;hp=dc64fac008315092a6d878e5df8634735ea3bbb8;hpb=044399b2cb6ad2d7f63cfca945268853d7443a4d;p=linux-2.6 diff --git a/fs/hfsplus/options.c b/fs/hfsplus/options.c index dc64fac008..9997cbf8be 100644 --- a/fs/hfsplus/options.c +++ b/fs/hfsplus/options.c @@ -132,7 +132,8 @@ int hfsplus_parse_options(char *input, struct hfsplus_sb_info *sbi) return 0; } p = match_strdup(&args[0]); - sbi->nls = load_nls(p); + if (p) + sbi->nls = load_nls(p); if (!sbi->nls) { printk(KERN_ERR "hfs: unable to load nls mapping \"%s\"\n", p); kfree(p);