diff options
| author | Christian Gmeiner <cgmeiner@igalia.com> | 2026-11-02 11:38:17 +0100 |
|---|---|---|
| committer | Christian Gmeiner <cgmeiner@igalia.com> | 2026-11-05 12:17:19 +0100 |
| commit | a0560a12d8c1a03e925c5d9be8479da75663a40f (patch) | |
| tree | be2c05a9c775c891edeb642c73026e4867e57c31 /scripts/Makefile.thinlto | |
| parent | a2b7b707d75e605d31fb3d85a6b27f8bb2a01413 (diff) | |
| download | linux-next-a0560a12d8c1a03e925c5d9be8479da75663a40f.tar.gz linux-next-a0560a12d8c1a03e925c5d9be8479da75663a40f.zip | |
drm/etnaviv: Fix NULL dereference on unbind without PPU flop reset
flop_reset_data_ppu is only allocated on GPUs that need the PPU flop
reset. However, etnaviv_unbind(..) frees it unconditionally, and
etnaviv_cmdbuf_free(..) dereferences cmdbuf->suballoc before checking
whether cmdbuf is NULL.
As a result, unloading the driver on GPUs that do not need the PPU
flop reset causes a NULL pointer dereference at address 0.
Fixes: 85ba57ad88cf ("drm/etnaviv: Add PPU flop reset")
Cc: stable@vger.kernel.org
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Link: https://patch.msgid.link/20261102-etnaviv-unbind-flop-fix-v1-1-588fd16f6768@igalia.com
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
