aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorLiu Ying <[email protected]>2025-08-06 09:52:24 +0000
committerLiu Ying <[email protected]>2025-08-15 03:19:56 +0000
commit50a8c08b8b69399a09c2dbcad8ef3fef9d9349d2 (patch)
tree27ea02fbd81a1bdeefdb40ffb5e430ad4f0c716f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/rockchip: vop2: make vp registers nonvolatile (diff)
downloadkernel-50a8c08b8b69399a09c2dbcad8ef3fef9d9349d2.tar.gz
kernel-50a8c08b8b69399a09c2dbcad8ef3fef9d9349d2.zip
drm/bridge: analogix_dp: Fix bailout for devm_drm_bridge_alloc()
devm_drm_bridge_alloc() returns ERR_PTR on failure instead of a NULL pointer, so use IS_ERR() to check the returned pointer. While at it, on failure, return ERR_CAST(dp) instead of ERR_PTR(-ENOMEM) in order not to depend on devm_drm_bridge_alloc() error code implementation. Fixes: 48f05c3b4b70 ("drm/bridge: analogix_dp: Use devm_drm_bridge_alloc() API") Signed-off-by: Liu Ying <[email protected]> Reviewed-by: Luca Ceresoli <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions