Skip to content

Commit

Permalink
PM QoS: Fix kzalloc() parameters swapped in pm_qos_power_open()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: mark gross <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
David Alan Gilbert authored and rjwysocki committed Aug 24, 2010
1 parent f4e385c commit bac1e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/pm_qos_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit bac1e74

Please sign in to comment.