Revision 3cec638b3d793b7cacdec5b8072364b41caeb0e1 authored by Steven Rostedt (VMware) on 10 December 2018, 02:17:30 UTC, committed by Steven Rostedt (VMware) on 11 December 2018, 18:50:19 UTC
When create_event_filter() fails in set_trigger_filter(), the filter may still be allocated and needs to be freed. The caller expects the data->filter to be updated with the new filter, even if the new filter failed (we could add an error message by setting set_str parameter of create_event_filter(), but that's another update). But because the error would just exit, filter was left hanging and nothing could free it. Found by kmemleak detector. Cc: stable@vger.kernel.org Fixes: bac5fb97a173a ("tracing: Add and use generic set_trigger_filter() implementation") Reviewed-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent b61c192
File | Mode | Size |
---|---|---|
blocklayout | ||
filelayout | ||
flexfilelayout | ||
Kconfig | -rw-r--r-- | 5.8 KB |
Makefile | -rw-r--r-- | 1.3 KB |
cache_lib.c | -rw-r--r-- | 3.8 KB |
cache_lib.h | -rw-r--r-- | 1.0 KB |
callback.c | -rw-r--r-- | 11.0 KB |
callback.h | -rw-r--r-- | 5.3 KB |
callback_proc.c | -rw-r--r-- | 18.8 KB |
callback_xdr.c | -rw-r--r-- | 26.9 KB |
client.c | -rw-r--r-- | 32.8 KB |
delegation.c | -rw-r--r-- | 32.3 KB |
delegation.h | -rw-r--r-- | 3.2 KB |
dir.c | -rw-r--r-- | 66.1 KB |
direct.c | -rw-r--r-- | 28.6 KB |
dns_resolve.c | -rw-r--r-- | 10.2 KB |
dns_resolve.h | -rw-r--r-- | 851 bytes |
export.c | -rw-r--r-- | 4.1 KB |
file.c | -rw-r--r-- | 21.9 KB |
fscache-index.c | -rw-r--r-- | 4.1 KB |
fscache.c | -rw-r--r-- | 14.1 KB |
fscache.h | -rw-r--r-- | 6.9 KB |
getroot.c | -rw-r--r-- | 3.5 KB |
inode.c | -rw-r--r-- | 61.7 KB |
internal.h | -rw-r--r-- | 24.2 KB |
io.c | -rw-r--r-- | 4.1 KB |
iostat.h | -rw-r--r-- | 1.8 KB |
mount_clnt.c | -rw-r--r-- | 12.4 KB |
namespace.c | -rw-r--r-- | 6.9 KB |
netns.h | -rw-r--r-- | 942 bytes |
nfs.h | -rw-r--r-- | 1.0 KB |
nfs2super.c | -rw-r--r-- | 569 bytes |
nfs2xdr.c | -rw-r--r-- | 26.5 KB |
nfs3_fs.h | -rw-r--r-- | 1.1 KB |
nfs3acl.c | -rw-r--r-- | 8.0 KB |
nfs3client.c | -rw-r--r-- | 3.1 KB |
nfs3proc.c | -rw-r--r-- | 24.9 KB |
nfs3super.c | -rw-r--r-- | 649 bytes |
nfs3xdr.c | -rw-r--r-- | 56.1 KB |
nfs42.h | -rw-r--r-- | 843 bytes |
nfs42proc.c | -rw-r--r-- | 19.7 KB |
nfs42xdr.c | -rw-r--r-- | 18.0 KB |
nfs4_fs.h | -rw-r--r-- | 20.3 KB |
nfs4client.c | -rw-r--r-- | 32.3 KB |
nfs4file.c | -rw-r--r-- | 6.4 KB |
nfs4getroot.c | -rw-r--r-- | 1011 bytes |
nfs4idmap.c | -rw-r--r-- | 19.4 KB |
nfs4idmap.h | -rw-r--r-- | 2.7 KB |
nfs4namespace.c | -rw-r--r-- | 12.7 KB |
nfs4proc.c | -rw-r--r-- | 263.0 KB |
nfs4renewd.c | -rw-r--r-- | 4.8 KB |
nfs4session.c | -rw-r--r-- | 16.6 KB |
nfs4session.h | -rw-r--r-- | 5.2 KB |
nfs4state.c | -rw-r--r-- | 68.2 KB |
nfs4super.c | -rw-r--r-- | 8.7 KB |
nfs4sysctl.c | -rw-r--r-- | 1.4 KB |
nfs4trace.c | -rw-r--r-- | 471 bytes |
nfs4trace.h | -rw-r--r-- | 43.3 KB |
nfs4xdr.c | -rw-r--r-- | 202.9 KB |
nfsroot.c | -rw-r--r-- | 9.5 KB |
nfstrace.c | -rw-r--r-- | 328 bytes |
nfstrace.h | -rw-r--r-- | 23.8 KB |
pagelist.c | -rw-r--r-- | 33.4 KB |
pnfs.c | -rw-r--r-- | 80.3 KB |
pnfs.h | -rw-r--r-- | 24.5 KB |
pnfs_dev.c | -rw-r--r-- | 9.6 KB |
pnfs_nfs.c | -rw-r--r-- | 23.5 KB |
proc.c | -rw-r--r-- | 18.8 KB |
read.c | -rw-r--r-- | 11.6 KB |
super.c | -rw-r--r-- | 75.8 KB |
symlink.c | -rw-r--r-- | 1.8 KB |
sysctl.c | -rw-r--r-- | 1.3 KB |
unlink.c | -rw-r--r-- | 14.2 KB |
write.c | -rw-r--r-- | 56.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...