All of lore.kernel.org
 help / color / mirror / Atom feed
* radeon pm bug?
@ 2013-04-30 23:22 Sylvain BERTRAND
  2013-05-01 17:04 ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: Sylvain BERTRAND @ 2013-04-30 23:22 UTC (permalink / raw)
  To: dri-devel

Hi,

In radeon_atombios.c file, radeon_atombios_parse_power_table_6
function, the power state is selected using the state array index:

power_state = (union pplib_power_state *)&state_array->states[i];

The state array has variable sized states which size should be
computed as said in the atombios.h file, definition of
ATOM_PPLIB_STATE_V2 struct.

Bug?

regards,

-- 
Sylvain

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: radeon pm bug?
  2013-04-30 23:22 radeon pm bug? Sylvain BERTRAND
@ 2013-05-01 17:04 ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2013-05-01 17:04 UTC (permalink / raw)
  To: Sylvain BERTRAND; +Cc: dri-devel

On Tue, Apr 30, 2013 at 7:22 PM, Sylvain BERTRAND <sylware@legeek.net> wrote:
> Hi,
>
> In radeon_atombios.c file, radeon_atombios_parse_power_table_6
> function, the power state is selected using the state array index:
>
> power_state = (union pplib_power_state *)&state_array->states[i];
>
> The state array has variable sized states which size should be
> computed as said in the atombios.h file, definition of
> ATOM_PPLIB_STATE_V2 struct.
>
> Bug?

Yeah, I looks like a bug.  I'll fix it up.

Alex

>
> regards,
>
> --
> Sylvain
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-01 17:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-30 23:22 radeon pm bug? Sylvain BERTRAND
2013-05-01 17:04 ` Alex Deucher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.