PM QoS: Fix kzalloc() parameters swapped in pm_qos_power_open()
authorDavid Alan Gilbert <linux@treblig.org>
Tue, 24 Aug 2010 18:22:18 +0000 (20:22 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Tue, 24 Aug 2010 18:22:18 +0000 (20:22 +0200)
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>
kernel/pm_qos_params.c

index 996a4dec5f968406aae7ef9b79240768da1ffddb..9da439b419aabac798c853301d2878fef14dc2ae 100644 (file)
@@ -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;