Loading
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: a452510a ("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>