linux/drivers/gpu/drm/gma500
Jesper Juhl aa7c62af10 intel, gma500, lvds: Fix use after free and mem leak in psb_intel_lvds_init()
In psb_intel_lvds_init(), if we fail to allocate memory for
'psb_intel_connector' we free the memory we previously allocated for
'psb_intel_encoder', but we then proceed to use that free'd pointer
when we do 'psb_intel_encoder->dev_priv = lvds_priv;'.

We may also leak the memory we allocated for 'psb_intel_encoder' if we
'goto failed_connector;' and the variable goes out of scope.

While I was there anyway, I also removed the pointless 'if
(psb_intel_connector)' before freeing it at the 'failed_connector:'
label - kfree() deals gracefully with NULL pointers, so it is not
needed.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-10 13:05:37 +00:00
..
accel_2d.c drm: Replace pitch with pitches[] in drm_framebuffer 2011-12-20 10:06:27 +00:00
backlight.c gma500: Add device framework 2011-11-16 11:25:08 +00:00
cdv_device.c gma500: Fix Cedarview support (Correct version) 2012-01-03 09:30:07 +00:00
cdv_device.h gma500: Add support for Cedarview 2011-11-16 11:27:35 +00:00
cdv_intel_crt.c gma500: Discard modes that don't fit in stolen memory 2012-01-13 09:02:06 +00:00
cdv_intel_display.c gma500: now move the Oaktrail save state into its own structure 2012-03-10 13:05:28 +00:00
cdv_intel_hdmi.c gma500: Discard modes that don't fit in stolen memory 2012-01-13 09:02:06 +00:00
cdv_intel_lvds.c gma500: now move the Oaktrail save state into its own structure 2012-03-10 13:05:28 +00:00
framebuffer.c gma500: plug in more of the gamma functionality 2012-03-10 13:05:23 +00:00
framebuffer.h gma500: kill virtual mapping support 2011-12-06 09:55:29 +00:00
gem_glue.c
gem_glue.h
gem.c gma500: do a pass over the FIXME tags 2011-12-06 09:55:33 +00:00
gtt.c gma500: Fix shmem mapping 2012-01-24 17:35:53 +00:00
gtt.h gma500: gtt based hardware scrolling console 2011-12-06 09:55:39 +00:00
intel_bios.c gma500: Move the API 2011-12-06 09:54:23 +00:00
intel_bios.h gma500: Add the glue to the various BIOS and firmware interfaces 2011-11-16 11:25:28 +00:00
intel_gmbus.c drm: Fix kcalloc parameters swapped 2012-02-13 12:07:36 +00:00
intel_i2c.c gma500: fixup build versus latest header changes. 2011-11-16 12:14:04 +00:00
intel_opregion.c gma500: do a pass over the FIXME tags 2011-12-06 09:55:33 +00:00
Kconfig gma500: Kconfig documentation tweak 2012-03-10 13:05:29 +00:00
Makefile gma500: Fix Cedarview support (Correct version) 2012-01-03 09:30:07 +00:00
mid_bios.c gma500: silence gcc warnings in mid_get_vbt_data() 2012-01-10 10:01:22 +00:00
mid_bios.h gma500: Add the glue to the various BIOS and firmware interfaces 2011-11-16 11:25:28 +00:00
mmu.c gma500: introduce the GTT and MMU handling logic 2011-11-16 11:23:38 +00:00
oaktrail_crtc.c gma500: clean up some of the struct fields we no longer use 2012-03-10 13:05:25 +00:00
oaktrail_device.c gma500: now move the Oaktrail save state into its own structure 2012-03-10 13:05:28 +00:00
oaktrail_hdmi_i2c.c gma500: fixup build versus latest header changes. 2011-11-16 12:14:04 +00:00
oaktrail_hdmi.c gma500: now move the Oaktrail save state into its own structure 2012-03-10 13:05:28 +00:00
oaktrail_lvds.c gma500: now move the Oaktrail save state into its own structure 2012-03-10 13:05:28 +00:00
oaktrail.h gma500: Add Oaktrail support 2011-11-16 11:27:12 +00:00
power.c gma500: now move the Oaktrail save state into its own structure 2012-03-10 13:05:28 +00:00
power.h gma500: Add device framework 2011-11-16 11:25:08 +00:00
psb_device.c gma500: now move the Oaktrail save state into its own structure 2012-03-10 13:05:28 +00:00
psb_drv.c drm: move pci bus master enable into driver. 2012-02-16 18:31:07 +00:00
psb_drv.h gma500: now move the Oaktrail save state into its own structure 2012-03-10 13:05:28 +00:00
psb_intel_display.c gma500: now move the Oaktrail save state into its own structure 2012-03-10 13:05:28 +00:00
psb_intel_display.h gma500: Add Poulsbo support 2011-11-16 11:26:55 +00:00
psb_intel_drv.h gma500: Convert Cedarview to work with new output handling 2011-12-20 10:23:15 +00:00
psb_intel_lvds.c intel, gma500, lvds: Fix use after free and mem leak in psb_intel_lvds_init() 2012-03-10 13:05:37 +00:00
psb_intel_modes.c gma500: Remove psb_intel_output from ddc_probe and ddc_get_modes 2011-12-20 10:23:06 +00:00
psb_intel_reg.h gma500: Replace SDVO code with slightly modified version from i915 2011-12-20 10:23:14 +00:00
psb_intel_sdvo_regs.h gma500: Replace SDVO code with slightly modified version from i915 2011-12-20 10:23:14 +00:00
psb_intel_sdvo.c drm: add convenience function to create an range property 2012-02-09 10:15:25 +00:00
psb_irq.c gma500: Add VBLANK support for Poulsbo hardware 2011-12-06 09:55:32 +00:00
psb_irq.h gma500: Add the core DRM files and headers 2011-11-16 11:26:35 +00:00
psb_lid.c gma500: do a pass over the FIXME tags 2011-12-06 09:55:33 +00:00
psb_reg.h gma500: Add the core DRM files and headers 2011-11-16 11:26:35 +00:00