Merge tag 'drm-next-2018-06-15' of git://anongit.freedesktop.org/drm/drm
[muen/linux.git] / drivers / gpu / drm / amd / powerplay / hwmgr / pp_psm.c
index 323990b77ead75a187a48c8847c49850c1be6c43..91ffb7bc4ee72512f9a31aebbce9eaec3939d9d7 100644 (file)
@@ -50,7 +50,7 @@ int psm_init_power_state_table(struct pp_hwmgr *hwmgr)
                return 0;
        }
 
-       hwmgr->ps = kzalloc(size * table_entries, GFP_KERNEL);
+       hwmgr->ps = kcalloc(table_entries, size, GFP_KERNEL);
        if (hwmgr->ps == NULL)
                return -ENOMEM;