Skip to content

Commit

Permalink
hfsplus: handle match_strdup failure
Browse files Browse the repository at this point in the history
fs/hfsplus/options.c (hfsplus_parse_options): Handle match_strdup failure.

Signed-off-by: Jim Meyering <[email protected]>
Cc: Roman Zippel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
meyering authored and torvalds committed Apr 29, 2008
1 parent 3fbe5c3 commit cd6fda3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/hfsplus/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cd6fda3

Please sign in to comment.