From: Geyslan G. Bem Date: Wed, 6 Nov 2013 19:02:51 +0000 (-0300) Subject: tracing: Do not assign filp->private_data to freed memory X-Git-Tag: v3.13-rc1~57^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6d3523caab75196560c85aae80cb8f4a8e380ea;p=pandora-kernel.git tracing: Do not assign filp->private_data to freed memory In system_tr_open(), the filp->private_data can be assigned the 'dir' variable even if it was freed. This is on the error path, and is harmless because the error return code will prevent filp->private_data from being used. But for correctness, we should not assign it to a recently freed variable, as that can cause static tools to give false warnings. Also have both subsystem_open() and system_tr_open() return -ENODEV if tracing has been disabled. Link: http://lkml.kernel.org/r/1383764571-7318-1-git-send-email-geyslan@gmail.com Signed-off-by: Geyslan G. Bem Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed