Skip to content
Snippets Groups Projects
Commit d89c8ce0 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Ben Skeggs
Browse files

drm/nouveau: fix pm initialization order


If nouveau_pm_perflvl_get() fails, pm->profiles list will be left
uninitialized, which causes oops during nouveau_pm_fini().

Move INIT_LIST_HEAD before call to nouveau_pm_perflvl_get().

Signed-off-by: default avatarDmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent acac7bdb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment