Tomi Valkeinen
925e494048
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 <tomi.valkeinen@ti.com >
2015-03-24 13:50:54 +02:00
..
2015-02-23 10:48:02 +02:00
2015-01-09 09:13:41 +10:00
2015-01-21 14:57:03 +01:00
2015-03-09 19:58:30 +10:00
2015-01-21 14:57:03 +01:00
2015-01-28 10:01:30 +01:00
2015-02-16 15:48:00 -08:00
2015-03-11 22:08:17 +01:00
2015-01-21 14:57:03 +01:00
2015-03-10 09:59:34 +01:00
2015-03-10 09:59:33 +01:00
2015-02-23 17:19:25 +01:00
2015-01-21 14:57:03 +01:00
2015-03-09 19:58:30 +10:00
2015-03-05 09:04:39 +10:00
2015-03-24 13:50:54 +02:00
2015-01-31 10:11:45 +10:00
2015-01-21 14:57:03 +01:00
2015-03-03 17:28:31 -05:00
2015-03-03 16:16:30 +02:00
2015-03-19 14:05:53 +10:00
2015-02-03 11:12:37 +10:00
2015-02-05 16:21:19 +01:00
2015-03-09 19:58:30 +10:00
2015-02-03 11:12:37 +10:00
2015-03-05 09:04:39 +10:00
2015-01-31 10:12:23 +10:00
2015-01-19 03:02:13 -08:00
2015-03-17 09:36:31 +01:00
2015-03-10 09:59:35 +01:00
2015-03-13 17:37:35 +01:00
2015-02-13 23:28:12 +01:00
2015-03-17 14:03:04 +01:00
2015-03-11 22:04:56 +01:00
2015-03-13 10:17:38 +01:00
2015-03-11 22:08:07 +01:00
2015-03-11 22:10:11 +01:00
2015-01-21 14:57:03 +01:00
2015-03-13 17:37:35 +01:00
2015-03-13 17:37:35 +01:00
2015-02-13 23:28:12 +01:00
2015-03-09 19:41:15 +10:00
2015-01-28 08:45:37 +01:00
2015-03-05 09:01:37 +10:00
2015-03-10 09:59:34 +01:00
2015-03-13 17:37:35 +01:00
2015-03-11 16:43:40 +01:00
2015-01-22 06:11:39 +01:00
2015-03-10 09:59:36 +01:00
2015-03-13 17:37:35 +01:00
2015-02-10 14:30:31 -08:00
2015-02-03 11:12:37 +10:00
2015-01-28 08:45:40 +01:00