--- kernel/cpuset.c | 9 +++++++++ 1 file changed, 9 insertions(+) Index: linux-2.6.22-rc3/kernel/cpuset.c =================================================================== --- linux-2.6.22-rc3.orig/kernel/cpuset.c +++ linux-2.6.22-rc3/kernel/cpuset.c @@ -1741,6 +1741,15 @@ static int cpuset_tasks_open(struct inod * show up until sometime later on. */ npids = atomic_read(&cs->count); + if (!npids) { + ctr->buf = kmalloc(2, GFP_KERNEL); + if (!ctr->buf) + goto err2; + ctr->bufsz = snprintf(ctr->buf, 2, " "); + file->private_data = ctr; + return 0; + } + pidarray = kmalloc(npids * sizeof(pid_t), GFP_KERNEL); if (!pidarray) goto err1;