aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2022-04-24 19:35:12 +0100
committerMelissa Wen <[email protected]>2022-04-26 11:55:28 -0100
commitce7a1ecf3f9f1fccaf67295307614511d8e11b13 (patch)
treef082e2eee996ad9ebd25b95a0da6a5b2af925725 /net/lapb/lapb_subr.c
parent2deb9739bc133c6a0488f580d90351b72cadf81e (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