[PATCH] drm/vc4: perfmon: Fix variable dereferenced before check