git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
isofs: fix potential memory leak in mount option parsing
[sfrench/cifs-2.6.git]
/
fs
/
isofs
/
inode.c
diff --git
a/fs/isofs/inode.c
b/fs/isofs/inode.c
index bc258a4402f6afbc921a508db37f95002f2ff7f0..ec3fba7d492f483e14accbfd98d5b63550f2591c 100644
(file)
--- a/
fs/isofs/inode.c
+++ b/
fs/isofs/inode.c
@@
-394,7
+394,10
@@
static int parse_options(char *options, struct iso9660_options *popt)
break;
#ifdef CONFIG_JOLIET
case Opt_iocharset:
+ kfree(popt->iocharset);
popt->iocharset = match_strdup(&args[0]);
+ if (!popt->iocharset)
+ return 0;
break;
#endif
case Opt_map_a: