Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd6fda36 authored by Jim Meyering's avatar Jim Meyering Committed by Linus Torvalds
Browse files

hfsplus: handle match_strdup failure



fs/hfsplus/options.c (hfsplus_parse_options): Handle match_strdup failure.

Signed-off-by: default avatarJim Meyering <meyering@redhat.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3fbe5c31
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -132,6 +132,7 @@ int hfsplus_parse_options(char *input, struct hfsplus_sb_info *sbi)
				return 0;
			}
			p = match_strdup(&args[0]);
			if (p)
				sbi->nls = load_nls(p);
			if (!sbi->nls) {
				printk(KERN_ERR "hfs: unable to load nls mapping \"%s\"\n", p);