From: Thierry Reding Date: Thu, 6 Nov 2014 13:12:08 +0000 (+0100) Subject: drm/tegra: Fix error handling cleanup X-Git-Tag: omap-for-v3.19/fixes-rc1~80^2~61^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d1e6fe9b5cd9e51c0b064b60f673a973cac38ba;p=pandora-kernel.git 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 Reported-by: Sean Paul Reviewed-by: Sean Paul Signed-off-by: Thierry Reding --- Reading git-diff-tree failed