On Sun, Sep 9, 2012 at 7:56 AM, Suresh Siddha <[email protected]> wrote:
>
> yes but that is not a valid range I think because of the supported
> physical address bit limits of the processor and also the max
> architecture limit of 52 address bits.
But how could the caller possibly know that? None of those internal
PAT limits are exposed anywhere.
So doing the BUG_ON() is wrong. I'd suggest changing it to an EINVAL.
In fact, BUG_ON() is *always* wrong, unless it's a "my internal data
structures are so messed up that I cannot continue".
Linus
--
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/