diff options
author | Geyslan G. Bem <[email protected]> | 2013-11-06 16:02:51 -0300 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2013-11-06 15:26:54 -0500 |
commit | d6d3523caab75196560c85aae80cb8f4a8e380ea (patch) | |
tree | c051e62d5e1579a530ed2966d1ee38f5c7a8dce8 /scripts/gdb | |
parent | 2e86421debc2cf4d1513c9b73fcd34c5ce431ae3 (diff) |
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/[email protected]
Signed-off-by: Geyslan G. Bem <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions