On 8/6/25 17:52, Liu Ying wrote: > 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 <victor....@nxp.com> > --- > v2: > - Return ERR_CAST(dp) on failure. (Luca) > > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)
Applied to misc/kernel.git (drm-misc-fixes). -- Regards, Liu Ying