aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorMartin Peres <[email protected]>2017-01-18 23:49:21 +0200
committerBen Skeggs <[email protected]>2017-02-17 17:38:07 +1000
commitca33fafdc9020720a9773fd416c94fe68aef7220 (patch)
tree848b32bd759563eef03461a357c687d250fc2fc8 /tools/perf/util/c++/clang.cpp
parent443828fd9e6097464aa3fd32199bbba3a3bf7e88 (diff)
drm/nouveau/drm/nouveau/led: prevent a possible use-after-free
If the led class registration fails, we free drm->led but do not reset it to NULL, which means that the suspend/resume/fini function will act as if everything went well in init() and will likely crash the kernel. This patch adds the missing drm->led = NULL. Reported-by: Emmanuel Pescosta <[email protected]> Signed-off-by: Martin Peres <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions