From: Christoph Paasch Date: Sun, 1 Dec 2013 23:05:20 +0000 (+0100) Subject: ima: Do not free 'entry' before it is initialized X-Git-Tag: v3.13-rc3~4^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09ae6345721afbb7cf3e0920209b140cbe7bff0d;p=pandora-kernel.git ima: Do not free 'entry' before it is initialized 7bc5f447ce9d0 (ima: define new function ima_alloc_init_template() to API) moved the initialization of 'entry' in ima_add_boot_aggregate() a bit more below, after the if (ima_used_chip). So, 'entry' is not initialized while being inside this if-block. So, we should not attempt to free it. Found by Coverity (CID: 1131971) Fixes: 7bc5f447ce9d0 (ima: define new function ima_alloc_init_template() to API) Signed-off-by: Christoph Paasch Signed-off-by: Mimi Zohar --- Reading git-diff-tree failed