git.codelabs.ch
/
muen
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
408afb8
)
Merge tag 'affs-for-4.18-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
author
Linus Torvalds
<torvalds@linux-foundation.org>
Mon, 4 Jun 2018 21:27:09 +0000
(14:27 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Mon, 4 Jun 2018 21:27:09 +0000
(14:27 -0700)
Pull affs fix from David Sterba:
"A potential memory leak fix for AFFS"
* tag 'affs-for-4.18-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
affs: fix potential memory leak when parsing option 'prefix'
fs/affs/super.c
patch
|
blob
|
history
diff --git
a/fs/affs/super.c
b/fs/affs/super.c
index e602619aed9de905ae6d1fcfb7a02a911dff0f5f..d1ad11a8a4a59c2d7de3e854cfeb8b28716be59d 100644
(file)
--- a/
fs/affs/super.c
+++ b/
fs/affs/super.c
@@
-241,6
+241,7
@@
parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved,
affs_set_opt(*mount_opts, SF_NO_TRUNCATE);
break;
case Opt_prefix:
+ kfree(*prefix);
*prefix = match_strdup(&args[0]);
if (!*prefix)
return 0;