diff options
author | David Alan Gilbert <linux@treblig.org> | 2010-08-24 14:22:18 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2010-08-24 14:22:18 -0400 |
commit | bac1e74dba9755128748b872a0f304dad4d198c6 (patch) | |
tree | 68ffa67da67b1d7f06b4ff1cc7a705d3a5842386 /kernel | |
parent | f4e385ccfc10f44364101b126d1ac52b4c806f1d (diff) |
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')
-rw-r--r-- | kernel/pm_qos_params.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
348 | 348 | ||
349 | pm_qos_class = find_pm_qos_object_by_minor(iminor(inode)); | 349 | pm_qos_class = find_pm_qos_object_by_minor(iminor(inode)); |
350 | if (pm_qos_class >= 0) { | 350 | if (pm_qos_class >= 0) { |
351 | struct pm_qos_request_list *req = kzalloc(GFP_KERNEL, sizeof(*req)); | 351 | struct pm_qos_request_list *req = kzalloc(sizeof(*req), GFP_KERNEL); |
352 | if (!req) | 352 | if (!req) |
353 | return -ENOMEM; | 353 | return -ENOMEM; |
354 | 354 | ||