i915-pmu: Add extra check NULL
Subsystems (2)
PATCH 3/3 i915-pmu: Add extra check NULL
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by Denis Arefev <[email protected]>
--- drivers/gpu/drm/i915/i915_pmu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_pmu.c +1 -2
@@ -704,8 +704,7 @@ static void i915_pmu_disable(struct perf_event *event)* Decrement the reference count and clear the enabled * bitmask when the last listener on an event goes away. */ -if (engine !=NULL ) - { +if (engine !=NULL ) {if (--engine->pmu.enable_count[sample] ==0 ) engine->pmu.enable &= ~BIT (sample); }
Signature · 1 line
2.25.1
Jani Nikula
maintainerQuoted 1 line · Denis Arefev
Found by Linux Verification Center (linuxtesting.org) with SVACE.
The subject prefix should be something along the lines of "drm/i915/pmu".
The subject is misleading; there are no functional changes here, just whitespace changes. I'm guessing you intended to send something else?
Finally, the commit message is primarily for describing why the change is being made, not to advertize organizations or tools.
BR,
Jani.
Quoted 20 lines
Signed-off-by Denis Arefev <[email protected]>--- drivers/gpu/drm/i915/i915_pmu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/i915/i915_pmu.c +1
-2@@ -704,8 +704,7 @@ static void i915_pmu_disable(struct perf_event *event)* Decrement the reference count and clear the enabled * bitmask when the last listener on an event goes away. */ -if (engine !=NULL ) - { +if (engine !=NULL ) {if (--engine->pmu.enable_count[sample] ==0 ) engine->pmu.enable &= ~BIT (sample); }
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center