drm/tegra: Fix small leak on error in tegra_fb_alloc()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Nov 2013 10:25:26 +0000 (13:25 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 20 Dec 2013 14:56:06 +0000 (15:56 +0100)
commit6b7c79d19157d52901398964ad115dd472cedfde
treec0220a19cc5436d33a61e3f47ac0942e3bb4f5cf
parent60c2f709d9b41184e0279d7538a5217885da8dde
drm/tegra: Fix small leak on error in tegra_fb_alloc()

If we don't have enough memory for ->planes then we leak "fb".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/fb.c