From: Thierry Reding Date: Fri, 3 Jul 2015 12:14:29 +0000 (+0200) Subject: drm/tegra: sor: Set minor after debugfs initialization X-Git-Tag: firefly_0821_release~176^2~1083^2~29^2~11 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3ff1f22c882493dcceb25cbca5b516d8e4271151;p=firefly-linux-kernel-4.4.55.git drm/tegra: sor: Set minor after debugfs initialization The DRM minor is needed to teardown debugfs, so it needs to be tracked to prevent a crash on driver removal. Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index 7df7328f9fed..18b4d892bce2 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -841,6 +841,8 @@ static int tegra_sor_debugfs_init(struct tegra_sor *sor, goto free; } + sor->minor = minor; + return err; free: