summaryrefslogtreecommitdiff
path: root/kernel/trace/tracing_map.c
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2016-04-25 22:01:27 +0300
committerSteven Rostedt <rostedt@goodmis.org>2016-04-26 16:40:29 +0300
commit432480c58219eff32904b879eb3fcc1d268a3b06 (patch)
tree7a17b0d60cf46505700983b8a020b3edabc18831 /kernel/trace/tracing_map.c
parent4812952f9c94f67b3cc78ad0a6482bf182aa5a44 (diff)
downloadlinux-432480c58219eff32904b879eb3fcc1d268a3b06.tar.xz
tracing: Add check for NULL event field when creating hist field
Smatch flagged create_hist_field() as possibly being able to dereference a NULL pointer, although the current code exits in all cases where the event field could be NULL, so it's not actually a problem. Still, to prevent future changes to the code from overlooking new cases, make the NULL pointer check explicit and warn once in that case. Link: http://lkml.kernel.org/r/cfbc003f534a3e441b4313272fd412310aba6336.1461610073.git.tom.zanussi@linux.intel.com Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/tracing_map.c')
0 files changed, 0 insertions, 0 deletions