summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/meson/meson_vpp.h
diff options
context:
space:
mode:
authorTom Zanussi2019-04-18 17:18:51 +0200
committerSteven Rostedt (VMware)2019-05-21 18:46:32 +0200
commitc8d94a1878342fdffedaaf15201d951dfc147065 (patch)
treea970fca16b97110bd648f998d4fb7aeb21a5994e /drivers/gpu/drm/meson/meson_vpp.h
parenttracing: Prevent hist_field_var_ref() from accessing NULL tracing_map_elts (diff)
downloadkernel-qcow2-linux-c8d94a1878342fdffedaaf15201d951dfc147065.tar.gz
kernel-qcow2-linux-c8d94a1878342fdffedaaf15201d951dfc147065.tar.xz
kernel-qcow2-linux-c8d94a1878342fdffedaaf15201d951dfc147065.zip
tracing: Check keys for variable references in expressions too
There's an existing check for variable references in keys, but it doesn't go far enough. It checks whether a key field is a variable reference but doesn't check whether it's an expression containing variable references, which can cause the same problems for callers. Use the existing field_has_hist_vars() function rather than a direct top-level flag check to catch all possible variable references. Link: http://lkml.kernel.org/r/e8c3d3d53db5ca90ceea5a46e5413103a6902fc7.1555597045.git.tom.zanussi@linux.intel.com Cc: stable@vger.kernel.org Fixes: 067fe038e70f6 ("tracing: Add variable reference handling to hist triggers") Reported-by: Vincent Bernat <vincent@bernat.ch> Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'drivers/gpu/drm/meson/meson_vpp.h')
0 files changed, 0 insertions, 0 deletions