diff options
author | Peter Rosin | 2018-08-06 08:19:09 +0200 |
---|---|---|
committer | Benjamin Gaignard | 2018-08-07 15:33:00 +0200 |
commit | 66e31a72dc38543b2d9d1ce267dc78ba9beebcfd (patch) | |
tree | 5c458116689572faf1b9fcfeaf5e04955d4d350b /drivers/gpu/drm/sti/sti_hda.c | |
parent | drm: rcar-du: Use __drm_atomic_helper_plane_reset instead of copying the logic (diff) | |
download | kernel-qcow2-linux-66e31a72dc38543b2d9d1ce267dc78ba9beebcfd.tar.gz kernel-qcow2-linux-66e31a72dc38543b2d9d1ce267dc78ba9beebcfd.tar.xz kernel-qcow2-linux-66e31a72dc38543b2d9d1ce267dc78ba9beebcfd.zip |
drm/sti: do not remove the drm_bridge that was never added
Removing the drm_bridge_remove call should avoid a NULL dereference
during list processing in drm_bridge_remove if the error path is ever
taken.
The more natural approach would perhaps be to add a drm_bridge_add,
but there are several other bridges that never call drm_bridge_add.
Just removing the drm_bridge_remove is the easier fix.
Fixes: 84601dbdea36 ("drm: sti: rework init sequence")
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180806061910.29914-2-peda@axentia.se
Diffstat (limited to 'drivers/gpu/drm/sti/sti_hda.c')
-rw-r--r-- | drivers/gpu/drm/sti/sti_hda.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sti/sti_hda.c b/drivers/gpu/drm/sti/sti_hda.c index 49438337f70d..19b9b5ed1297 100644 --- a/drivers/gpu/drm/sti/sti_hda.c +++ b/drivers/gpu/drm/sti/sti_hda.c @@ -721,7 +721,6 @@ static int sti_hda_bind(struct device *dev, struct device *master, void *data) return 0; err_sysfs: - drm_bridge_remove(bridge); return -EINVAL; } |