From: David Alan Gilbert Date: Tue, 24 Aug 2010 18:22:18 +0000 (+0200) Subject: PM QoS: Fix kzalloc() parameters swapped in pm_qos_power_open() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bac1e74dba9755128748b872a0f304dad4d198c6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git PM QoS: Fix kzalloc() parameters swapped in pm_qos_power_open() sparse spotted that the kzalloc() in pm_qos_power_open() in the current Linus' git tree had its parameters swapped. Fix this. Signed-off-by: David Alan Gilbert Acked-by: mark gross Signed-off-by: Rafael J. Wysocki --- diff --git a/kernel/pm_qos_params.c b/kernel/pm_qos_params.c index 996a4dec5f96..9da439b419aa 100644 --- a/kernel/pm_qos_params.c +++ b/kernel/pm_qos_params.c @@ -348,7 +348,7 @@ static int pm_qos_power_open(struct inode *inode, struct file *filp) pm_qos_class = find_pm_qos_object_by_minor(iminor(inode)); if (pm_qos_class >= 0) { - struct pm_qos_request_list *req = kzalloc(GFP_KERNEL, sizeof(*req)); + struct pm_qos_request_list *req = kzalloc(sizeof(*req), GFP_KERNEL); if (!req) return -ENOMEM;