X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=kernel%2Fcgroup.c;h=53d86b4b0ce074470fdc27c5f00814c49aa4c8c1;hb=9dce07f1a441b77a15631cf0ed0238e0baa7ed64;hp=e9c2fb01e89bf9e0943c3e7a1230098af3df6243;hpb=2c6f2db13a2428aa16f54f50232a589ddd5d7d01;p=deliverable%2Flinux.git diff --git a/kernel/cgroup.c b/kernel/cgroup.c index e9c2fb01e89b..53d86b4b0ce0 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -2082,7 +2082,7 @@ static int cgroup_tasks_open(struct inode *unused, struct file *file) kfree(pidarray); } else { - ctr->buf = 0; + ctr->buf = NULL; ctr->bufsz = 0; } file->private_data = ctr; @@ -2614,7 +2614,7 @@ static int proc_cgroupstats_show(struct seq_file *m, void *v) static int cgroupstats_open(struct inode *inode, struct file *file) { - return single_open(file, proc_cgroupstats_show, 0); + return single_open(file, proc_cgroupstats_show, NULL); } static struct file_operations proc_cgroupstats_operations = {