From: Roberto Sassu Date: Wed, 27 Nov 2013 13:40:41 +0000 (+0100) Subject: ima: store address of template_fmt_copy in a pointer before calling strsep X-Git-Tag: v3.13-rc3~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af91706d5ddecb4a9858cca9e90d463037cfd498;p=pandora-kernel.git 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 Reported-by: Sebastian Ott Signed-off-by: Mimi Zohar Signed-off-by: James Morris --- Reading git-diff-tree failed