projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6db27dd
)
hfs: handle match_strdup failure
author
Jim Meyering
<
[email protected]
>
Tue, 29 Apr 2008 07:59:07 +0000
(
00:59
-0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 29 Apr 2008 15:06:01 +0000
(08:06 -0700)
fs/hfs/super.c (parse_options): Handle match_strdup failure, twice.
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]
>
fs/hfs/super.c
patch
|
blob
|
history
diff --git
a/fs/hfs/super.c
b/fs/hfs/super.c
index 32de44ed002196c5b3fd327662dc123f9899f8ac..8cf67974adf60ad79f1b88da04ba4d4fb71f3b68 100644
(file)
--- a/
fs/hfs/super.c
+++ b/
fs/hfs/super.c
@@
-297,7
+297,8
@@
static int parse_options(char *options, struct hfs_sb_info *hsb)
return 0;
}
p = match_strdup(&args[0]);
- hsb->nls_disk = load_nls(p);
+ if (p)
+ hsb->nls_disk = load_nls(p);
if (!hsb->nls_disk) {
printk(KERN_ERR "hfs: unable to load codepage \"%s\"\n", p);
kfree(p);
@@
-311,7
+312,8
@@
static int parse_options(char *options, struct hfs_sb_info *hsb)
return 0;
}
p = match_strdup(&args[0]);
- hsb->nls_io = load_nls(p);
+ if (p)
+ hsb->nls_io = load_nls(p);
if (!hsb->nls_io) {
printk(KERN_ERR "hfs: unable to load iocharset \"%s\"\n", p);
kfree(p);