summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/gem.c
diff options
context:
space:
mode:
authorThierry Reding2014-11-06 14:12:08 +0100
committerThierry Reding2014-11-13 16:14:48 +0100
commit1d1e6fe9b5cd9e51c0b064b60f673a973cac38ba (patch)
tree404e5b43d88a459e749d0a749ff41b6eebf5b9fc /drivers/gpu/drm/tegra/gem.c
parentdrm/tegra: gem: Use dma_mmap_writecombine() (diff)
downloadkernel-qcow2-linux-1d1e6fe9b5cd9e51c0b064b60f673a973cac38ba.tar.gz
kernel-qcow2-linux-1d1e6fe9b5cd9e51c0b064b60f673a973cac38ba.tar.xz
kernel-qcow2-linux-1d1e6fe9b5cd9e51c0b064b60f673a973cac38ba.zip
drm/tegra: Fix error handling cleanup
The DRM driver's ->load() implementation didn't do a good job (no job at all really) cleaning up on failure. Fix that by undoing any prior setup when an error occurs. This requires a bit of rework to make it possible to clean up fbdev midway. This was tested by injecting errors at various points during the initialization sequence and verifying that error cleanup didn't crash and no memory leaked (using kmemleak). Reported-by: Stéphane Marchesin <marcheu@chromium.org> Reported-by: Sean Paul <seanpaul@chromium.org> Reviewed-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/gem.c')
0 files changed, 0 insertions, 0 deletions