Re: mtd: kernel BUG at arch/x86/mm/pat.c:279!
From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2012-09-09 15:32:20
Also in:
lkml
From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2012-09-09 15:32:20
Also in:
lkml
On Sun, Sep 9, 2012 at 7:56 AM, Suresh Siddha [off-list ref] 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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>