Re: [PATCH v2] oom: fix integer overflow of points in oom_badness

From: Oleg Nesterov
Date: Mon Oct 31 2011 - 13:47:04 EST


On 10/31, Frantisek Hrbata wrote:
>
> unsigned int oom_badness(struct task_struct *p, struct mem_cgroup *mem,
> const nodemask_t *nodemask, unsigned long totalpages)
> {
> - int points;
> + long points;

Good catch. Imho this is the stable material.

Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/