linux/drivers/gpu/drm/tegra
Daniel Vetter 2b4c36612e drm/tegra: restrict plane loops to legacy planes
In Matt Ropers primary plane series a set of prep patches like

commit af2b653bfb
Author: Matt Roper <matthew.d.roper@intel.com>
Date:   Tue Apr 1 15:22:32 2014 -0700

    drm/i915: Restrict plane loops to only operate on overlay planes (v2)

ensured that all exisiting users of the mode_config->plane_list
wouldn't change behaviour. Unfortunately tegra seems to have fallen
through the cracks. Fix it.

This regression was introduced in

commit e13161af80
Author: Matt Roper <matthew.d.roper@intel.com>
Date:   Tue Apr 1 15:22:38 2014 -0700

    drm: Add drm_crtc_init_with_planes() (v2)

The result was that we've unref'ed the fb for the primary plane twice,
leading to a use-after free bug. This is because the drm core will
already set crtc->primary->fb to NULL and do the unref for us, and the
crtc disable hook is called by the drm crtc helpers for exactly this
case.

Aside: Now that the fbdev helpers clean up planes there's no longer a
need to do this in drivers. So this could probably be nuked entirely
in linux-next.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-04-24 15:04:30 +02:00
..
bus.c drm: provide device-refcount 2014-03-16 12:25:17 +01:00
dc.c drm/tegra: restrict plane loops to legacy planes 2014-04-24 15:04:30 +02:00
dc.h drm/tegra: Add eDP support 2014-04-04 09:12:50 +02:00
dpaux.c drm/tegra: Add eDP support 2014-04-04 09:12:50 +02:00
dpaux.h drm/tegra: Add eDP support 2014-04-04 09:12:50 +02:00
drm.c drm/tegra: Changes for v3.15-rc1 2014-04-05 16:13:08 +10:00
drm.h drm/tegra: Add eDP support 2014-04-04 09:12:50 +02:00
dsi.c drm/tegra: Relicense under GPL v2 2014-04-04 09:12:51 +02:00
dsi.h drm/tegra: Relicense under GPL v2 2014-04-04 09:12:51 +02:00
fb.c drm/tegra: Fix small leak on error in tegra_fb_alloc() 2013-12-20 15:56:06 +01:00
gem.c drm/tegra: Relicense under GPL v2 2014-04-04 09:12:51 +02:00
gem.h drm/tegra: Relicense under GPL v2 2014-04-04 09:12:51 +02:00
gr2d.c drm/tegra: Use standard GPL v2 license text 2014-04-04 09:12:51 +02:00
gr2d.h drm/tegra: Use symbolic names for gr2d registers 2013-10-31 09:55:44 +01:00
gr3d.c ARM: tegra: pass reset to tegra_powergate_sequence_power_up() 2013-12-11 16:43:11 -07:00
gr3d.h drm/tegra: Add 3D support 2013-10-31 09:55:45 +01:00
hdmi.c drm/tegra: Don't check resource with devm_ioremap_resource() 2014-01-14 14:34:14 +01:00
hdmi.h
Kconfig drm/tegra: Make legacy fbdev support optional 2013-12-20 15:56:05 +01:00
Makefile drm/tegra: Add eDP support 2014-04-04 09:12:50 +02:00
mipi-phy.c drm/tegra: Relicense under GPL v2 2014-04-04 09:12:51 +02:00
mipi-phy.h drm/tegra: Relicense under GPL v2 2014-04-04 09:12:51 +02:00
output.c drm/tegra: Add eDP support 2014-04-04 09:12:50 +02:00
rgb.c drm/tegra: Add guard to avoid double disable/enable of RGB outputs 2014-02-12 07:50:38 +01:00
sor.c drm/tegra: Add eDP support 2014-04-04 09:12:50 +02:00
sor.h drm/tegra: Add eDP support 2014-04-04 09:12:50 +02:00