summaryrefslogtreecommitdiffstats
path: root/kernel/pm_qos_params.c
diff options
context:
space:
mode:
authorDavid Alan Gilbert <linux@treblig.org>2010-08-24 20:22:18 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2010-08-24 20:22:18 +0200
commitbac1e74dba9755128748b872a0f304dad4d198c6 (patch)
tree68ffa67da67b1d7f06b4ff1cc7a705d3a5842386 /kernel/pm_qos_params.c
parentf4e385ccfc10f44364101b126d1ac52b4c806f1d (diff)
downloadop-kernel-dev-bac1e74dba9755128748b872a0f304dad4d198c6.zip
op-kernel-dev-bac1e74dba9755128748b872a0f304dad4d198c6.tar.gz
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 <linux@treblig.org> Acked-by: mark gross <markgross@thegnar.org> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/pm_qos_params.c')
-rw-r--r--kernel/pm_qos_params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/pm_qos_params.c b/kernel/pm_qos_params.c
index 996a4de..9da439b 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;
OpenPOWER on IntegriCloud