Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/etnaviv: inaccurate commit message and missing Fixes tag
--

commit 1bcc1945503d97a4e3b2616be71622735bd4fe37
Author: Tvrtko Ursulin <[email protected]>

> drm/etnaviv: Check drm_sched_entity_init() return value
>
> Start checking drm_sched_entity_init() return value in preparation of
> making that API a bit stricter.
>
> No functional change intended as the failure path should never trigger in
> this driver.
>
> Signed-off-by: Tvrtko Ursulin <[email protected]>
> Cc: Lucas Stach <[email protected]>
> Cc: Russell King <[email protected]>
> Cc: Christian Gmeiner <[email protected]>
> Cc: [email protected]

[Severity: Low]
Is the commit message accurate that the failure path can never trigger in
this driver?

Since commit fd177135f0e6 ("drm/sched: Account entity GPU time"),
drm_sched_entity_init() allocates entity->stats via
drm_sched_entity_stats_new() and can return -ENOMEM even with valid
arguments.

Without checking the return value, etnaviv_open() succeeds with a NULL
entity->rq, causing a NULL pointer dereference in drm_sched_entity_flush()
when etnaviv_postclose() calls drm_sched_entity_destroy().

Since this fixes a reachable bug, should the commit message be updated and
include:

  Fixes: fd177135f0e6 ("drm/sched: Account entity GPU time")

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=3

Reply via email to