summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_bridge.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-10-01 14:59:04 +0200
committerRob Clark <robdclark@chromium.org>2021-10-12 02:30:53 +0200
commit3eda901995371d390ef82d0b6462f4ea8efbcfdf (patch)
tree9b770d400f505d2b2308166aa5352cd58fd1992a /drivers/gpu/drm/drm_bridge.c
parentdrm/msm/a4xx: fix error handling in a4xx_gpu_init() (diff)
downloadlinux-3eda901995371d390ef82d0b6462f4ea8efbcfdf.tar.xz
linux-3eda901995371d390ef82d0b6462f4ea8efbcfdf.zip
drm/msm/a3xx: fix error handling in a3xx_gpu_init()
These error paths returned 1 on failure, instead of a negative error code. This would lead to an Oops in the caller. A second problem is that the check for "if (ret != -ENODATA)" did not work because "ret" was set to 1. Fixes: 5785dd7a8ef0 ("drm/msm: Fix duplicate gpu node in icc summary") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20211001125904.GK2283@kili Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/drm_bridge.c')
0 files changed, 0 insertions, 0 deletions