diff options
author | Colin Ian King <[email protected]> | 2022-04-24 19:35:12 +0100 |
---|---|---|
committer | Melissa Wen <[email protected]> | 2022-04-26 11:55:28 -0100 |
commit | ce7a1ecf3f9f1fccaf67295307614511d8e11b13 (patch) | |
tree | f082e2eee996ad9ebd25b95a0da6a5b2af925725 /net/lapb/lapb_subr.c | |
parent | 2deb9739bc133c6a0488f580d90351b72cadf81e (diff) |
drm/v3d: Fix null pointer dereference of pointer perfmon
In the unlikely event that pointer perfmon is null the WARN_ON return path
occurs after the pointer has already been deferenced. Fix this by only
dereferencing perfmon after it has been null checked.
Fixes: 26a4dc29b74a ("drm/v3d: Expose performance counters to userspace")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Juan A. Suarez <[email protected]>
Signed-off-by: Melissa Wen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions