projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hfsplus: handle match_strdup failure
[linux-2.6-microblaze.git]
/
fs
/
hfsplus
/
options.c
diff --git
a/fs/hfsplus/options.c
b/fs/hfsplus/options.c
index
dc64fac
..
9997cbf
100644
(file)
--- 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);