summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/git:/git.armlinux.org.uk
diff options
context:
space:
mode:
authorAlok Tiwari <alok.a.tiwari@oracle.com>2025-11-13 00:28:31 -0800
committerRob Clark <robin.clark@oss.qualcomm.com>2025-12-19 16:44:06 -0800
commitef3b04091fd8bc737dc45312375df8625b8318e2 (patch)
tree35de42ef2d0f36c52f35b6a2c8caca8a3e651ce4 /include/linux/platform_data/git:/git.armlinux.org.uk
parent129049d4fe22c998ae9fd1ec479fbb4ed5338c15 (diff)
drm/msm/a6xx: move preempt_prepare_postamble after error check
Move the call to preempt_prepare_postamble() after verifying that preempt_postamble_ptr is valid. If preempt_postamble_ptr is NULL, dereferencing it in preempt_prepare_postamble() would lead to a crash. This change avoids calling the preparation function when the postamble allocation has failed, preventing potential NULL pointer dereference and ensuring proper error handling. Fixes: 50117cad0c50 ("drm/msm/a6xx: Use posamble to reset counters on preemption") Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com> Patchwork: https://patchwork.freedesktop.org/patch/687659/ Message-ID: <20251113082839.3821867-1-alok.a.tiwari@oracle.com> Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Diffstat (limited to 'include/linux/platform_data/git:/git.armlinux.org.uk')
0 files changed, 0 insertions, 0 deletions