diff options
author | Roberto Sassu <roberto.sassu@polito.it> | 2013-11-27 14:40:41 +0100 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2013-11-30 03:09:53 +0100 |
commit | af91706d5ddecb4a9858cca9e90d463037cfd498 (patch) | |
tree | 6deb94f92beb6a51eadad053ded7da136847062f /fs/qnx6/super_mmi.c | |
parent | Linux 3.13-rc2 (diff) | |
download | linux-af91706d5ddecb4a9858cca9e90d463037cfd498.tar.xz linux-af91706d5ddecb4a9858cca9e90d463037cfd498.zip |
ima: store address of template_fmt_copy in a pointer before calling strsep
This patch stores the address of the 'template_fmt_copy' variable in a new
variable, called 'template_fmt_ptr', so that the latter is passed as an
argument of strsep() instead of the former. This modification is needed
in order to correctly free the memory area referenced by
'template_fmt_copy' (strsep() modifies the pointer of the passed string).
Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Reported-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'fs/qnx6/super_mmi.c')
0 files changed, 0 insertions, 0 deletions