[PATCH] intel, gma500, lvds: Fix use after free and mem leak in psb_intel_lvds_init()

2012-01-14 Thread Jesper Juhl
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 '

[PATCH] intel, gma500, lvds: Fix use after free on psb_intel_lvds_init()

2012-01-14 Thread Jesper Juhl
On Sat, 14 Jan 2012, Jesper Juhl wrote: > 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;'

[PATCH] gpu, drm, sis: Don't return uninitialized variable from sis_driver_load()

2012-01-14 Thread Jesper Juhl
In sis_driver_load(), the only use of 'ret' is as the return value from the function, unfortunately it is never initialized, so the function just returns garbage when it succeeds. To fix that, remove the variable and just return 0 directly on success. Signed-off-by: Jesper Juhl --- drivers/gpu/d

[PATCH] intel, gma500, lvds: Fix use after free on psb_intel_lvds_init()

2012-01-14 Thread Jesper Juhl
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;'. I believe the proper way to handle this is to

[Bug 44330] [i915g, bisected] Grass in Stellarium is not rendered correctly

2012-01-14 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=44330 Stephane Marchesin changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 43829] Resuming my AMD A4-3300 based laptop leaves the screen black

2012-01-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43829 --- Comment #6 from Zoltán Böszörményi 2012-01-14 19:14:30 PST --- Same for me - black screen. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee

Re: [PATCH] gpu, drm, sis: Don't return uninitialized variable from sis_driver_load()

2012-01-14 Thread Daniel Vetter
On Sat, Jan 14, 2012 at 09:20:37PM +0100, Jesper Juhl wrote: > In sis_driver_load(), the only use of 'ret' is as the return value > from the function, unfortunately it is never initialized, so the > function just returns garbage when it succeeds. > To fix that, remove the variable and just return 0

[PATCH] drm/i915: paper over missed irq issues with force wake voodoo

2012-01-14 Thread Daniel Vetter
Two things seem to do the trick on my ivb machine here: - prevent the gt from powering down while waiting for seqno notification interrupts by grabbing the force_wake in get_irq (and dropping it in put_irq again). - ordering writes from the ring's CS by reading a CS register, ACTHD seems to w

[Bug 43858] DVI of ATI RADEON 9200 AGP don't work

2012-01-14 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=43858 --- Comment #15 from Valter 2012-01-14 06:01:31 PST --- Hi Alex. I wrote the command: valter at valter-A7V400-MX:~$ xrandr --newmode "1920x1080R" 138.50 1920 1968 2000 2080 1080 1083 1088 +hsync -vsync to test, I had suggested committee.

[PATCH] intel, gma500, lvds: Fix use after free and mem leak in psb_intel_lvds_init()

2012-01-14 Thread Jesper Juhl
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 '

Re: [PATCH] intel, gma500, lvds: Fix use after free on psb_intel_lvds_init()

2012-01-14 Thread Jesper Juhl
On Sat, 14 Jan 2012, Jesper Juhl wrote: > 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;'

[PATCH] gpu, drm, sis: Don't return uninitialized variable from sis_driver_load()

2012-01-14 Thread Jesper Juhl
In sis_driver_load(), the only use of 'ret' is as the return value from the function, unfortunately it is never initialized, so the function just returns garbage when it succeeds. To fix that, remove the variable and just return 0 directly on success. Signed-off-by: Jesper Juhl --- drivers/gpu/d

[Bug 44330] [i915g, bisected] Grass in Stellarium is not rendered correctly

2012-01-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44330 Stephane Marchesin changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[PATCH] intel, gma500, lvds: Fix use after free on psb_intel_lvds_init()

2012-01-14 Thread Jesper Juhl
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;'. I believe the proper way to handle this is to

[Bug 44772] New: Radeon HD6950 (Cayman): Resuming from hibernation fails sometimes

2012-01-14 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=44772 Bug #: 44772 Summary: Radeon HD6950 (Cayman): Resuming from hibernation fails sometimes Classification: Unclassified Product: DRI Version: XOrg CVS Platform: All

[PATCH] drm/i915: paper over missed irq issues with force wake voodoo

2012-01-14 Thread Daniel Vetter
Two things seem to do the trick on my ivb machine here: - prevent the gt from powering down while waiting for seqno notification interrupts by grabbing the force_wake in get_irq (and dropping it in put_irq again). - ordering writes from the ring's CS by reading a CS register, ACTHD seems to w

[Bug 43858] DVI of ATI RADEON 9200 AGP don't work

2012-01-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43858 --- Comment #15 from Valter 2012-01-14 06:01:31 PST --- Hi Alex. I wrote the command: valter@valter-A7V400-MX:~$ xrandr --newmode "1920x1080R" 138.50 1920 1968 2000 2080 1080 1083 1088 +hsync -vsync to test, I had suggested committee. At

[Bug 44772] New: Radeon HD6950 (Cayman): Resuming from hibernation fails sometimes

2012-01-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44772 Bug #: 44772 Summary: Radeon HD6950 (Cayman): Resuming from hibernation fails sometimes Classification: Unclassified Product: DRI Version: XOrg CVS Platform: All