> > + doms = kmalloc(sizeof(cpumask_t), GFP_KERNEL);
> > + *doms = top_cpuset.cpus_allowed;
>
> We generally only excuse failure to check kmalloc return value when the
> code is called on the bootup path. But this code is called at other times.
>
> >
> > ...
> > + doms_cur = kmalloc(sizeof(cpumask_t), GFP_KERNEL);
Ah - good catch - thanks, Andrew. I should put together a fix,
to check these kmalloc calls.
For rebuild_sched_domains(), this can mean we just up and return having
done nothing.
For arch_init_sched_domains(), the code calling arch_init_sched_domains()
is not checking for failure, and doesn't have a trivial fallback code
path in the case of failure. I'll have to think about that one just a
little.
Thanks, Andrew!
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <[email protected]> 1.925.600.0401
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]