From: Tomi Valkeinen Date: Thu, 25 Sep 2014 19:24:27 +0000 (+0000) Subject: drm/omap: fix error handling in omap_framebuffer_create() X-Git-Tag: omap-for-v4.1/fixes-rc1~82^2~15^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=925e4940489a792b4aaf601c22c1943fbd9fd558;p=pandora-kernel.git drm/omap: fix error handling in omap_framebuffer_create() When an error happens in omap_framebuffer_create(), omap_framebuffer_create() calls omap_framebuffer_destroy() if the fb struct has been allocated. However, that crashes, as omap_framebuffer_destroy(), which calls drm_framebuffer_cleanup(), should only be called after drm_framebuffer_init() Fix this by just calling kfree() for the allocated fb when an error happens. Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed