linux/drivers/gpu/drm/tilcdc
Guido Martínez c9a3ad25ed drm/tilcdc: fix double kfree
display_timings_release calls kfree on the display_timings object passed
to it. Calling kfree after it is wrong. SLUB debug showed the following
warning:

    =============================================================================
    BUG kmalloc-64 (Tainted: G        W    ): Object already free
    -----------------------------------------------------------------------------

    Disabling lock debugging due to kernel taint
    INFO: Allocated in of_get_display_timings+0x2c/0x214 age=601 cpu=0
    pid=884
     __slab_alloc.constprop.79+0x2e0/0x33c
     kmem_cache_alloc+0xac/0xdc
     of_get_display_timings+0x2c/0x214
     panel_probe+0x7c/0x314 [tilcdc]
     platform_drv_probe+0x18/0x48
     [..snip..]
    INFO: Freed in panel_destroy+0x18/0x3c [tilcdc] age=0 cpu=0 pid=907
     __slab_free+0x34/0x330
     panel_destroy+0x18/0x3c [tilcdc]
     tilcdc_unload+0xd0/0x118 [tilcdc]
     drm_dev_unregister+0x24/0x98
     [..snip..]

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Tested-by: Darren Etheridge <detheridge@ti.com>
Cc: <stable@vger.kernel.org> #v3.9+
Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-07-08 11:25:26 +10:00
..
Kconfig drm: Add separate Kconfig option for fbdev helpers 2013-10-11 23:36:58 +02:00
Makefile drivers/gpu/drm/tilcdc: Makefile, only -Werror when no -W* in EXTRA_CFLAGS 2013-04-24 14:34:40 +10:00
tilcdc_crtc.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
tilcdc_drv.c drm/tilcdc: fix release order on exit 2014-07-08 11:25:21 +10:00
tilcdc_drv.h drm/tilcdc fixing i2c/slave initialization race 2013-06-28 09:12:54 +10:00
tilcdc_panel.c drm/tilcdc: fix double kfree 2014-07-08 11:25:26 +10:00
tilcdc_panel.h drm/tilcdc: add support for LCD panels (v5) 2013-02-19 17:57:45 -05:00
tilcdc_regs.h drm/tilcdc: support pixel widths greater than 1024 2013-06-28 09:12:13 +10:00
tilcdc_slave.c drm/tilcdc: slave: fix dangling sysfs connector node 2014-07-08 11:24:57 +10:00
tilcdc_slave.h drm/tilcdc: add encoder slave (v2) 2013-02-19 17:57:44 -05:00
tilcdc_tfp410.c drm/tilcdc: tfp410: fix dangling sysfs connector node 2014-07-08 11:25:08 +10:00
tilcdc_tfp410.h