diff options
author | 2017-01-18 23:49:21 +0200 | |
---|---|---|
committer | 2017-02-17 17:38:07 +1000 | |
commit | ca33fafdc9020720a9773fd416c94fe68aef7220 (patch) | |
tree | 848b32bd759563eef03461a357c687d250fc2fc8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | drm/nouveau/pci/g92: Enable changing pcie link speeds (diff) | |
download | linux-dev-ca33fafdc9020720a9773fd416c94fe68aef7220.tar.xz linux-dev-ca33fafdc9020720a9773fd416c94fe68aef7220.zip |
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 <emmanuelpescosta099@gmail.com>
Signed-off-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions