diff options
| author | 2026-04-11 17:59:15 +0300 | |
|---|---|---|
| committer | 2026-05-13 14:37:53 -0700 | |
| commit | 2b4abf879360ea00a9e2b46d2d15dcdbc0687eed (patch) | |
| tree | de32a5ea21189cea39dd8fe970c976b96058e8f1 /include/linux/amba/ssh: | |
| parent | drm/msm/adreno: Fix a reference leak in a6xx_gpu_init() (diff) | |
drm/msm/adreno: fix userspace-triggered crash on a2xx-a4xx
Before a5xx Adreno driver will not try fetching UBWC params (because
those generations didn't support UBWC anyway), however it's still
possible to query UBWC-related params from the userspace, triggering
possible NULL pointer dereference. Check for UBWC config in
adreno_get_param() and return sane defaults if there is none.
Fixes: a452510aad53 ("drm/msm/adreno: Switch to the common UBWC config struct")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Rob Clark <rob.clark@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/717778/
Message-ID: <20260411-adreno-fix-ubwc-v3-1-4983156f3f80@oss.qualcomm.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Diffstat (limited to 'include/linux/amba/ssh:')
0 files changed, 0 insertions, 0 deletions
