Re: [BUG]memblock: fix overflow of array index

From: H. Peter Anvin
Date: Wed Apr 25 2012 - 18:29:29 EST


On 04/25/2012 03:28 PM, Tejun Heo wrote:
>
> All indexes in memblock are integers. Changing that particular one to
> unsigned int doesn't fix anything. I think it just makes things more
> confusing. If there ever are cases w/ more then 2G memblocks, we're
> going for 64bit not unsigned.
>

I would expect there to be plenty of memblocks larger than 2G?

-hpa


--
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/