aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2022-06-22 10:02:43 +0200
committerMaxime Ripard <[email protected]>2022-06-27 15:43:14 +0200
commit5f701324c0fb6f9f5aaac3f8d1575321375f6d8f (patch)
tree8752c38c319c24413622731953030ee0f87c13f4 /lib/netdev-notifier-error-inject.c
parent85016f66af8506cb601fd4f4fde23ed327a266be (diff)
drm/vc4: perfmon: Fix variable dereferenced before check
Commit 30f8c74ca9b7 ("drm/vc4: Warn if some v3d code is run on BCM2711") introduced a check in vc4_perfmon_get() that dereferences a pointer before we checked whether that pointer is valid or not. Let's rework that function a bit to do things in the proper order. Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Fixes: 30f8c74ca9b7 ("drm/vc4: Warn if some v3d code is run on BCM2711") Signed-off-by: Maxime Ripard <[email protected]> Reviewed-by: José Expósito <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions