IO resources, x86: ioremap sanity check to catch mapping requests exceeding the BAR...
authorSuresh Siddha <suresh.b.siddha@intel.com>
Fri, 26 Sep 2008 01:43:34 +0000 (18:43 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 26 Sep 2008 07:42:20 +0000 (09:42 +0200)
Go through the iomem resource tree to check if any of the ioremap()
requests span more than any slot in the iomem resource tree and do
a WARN_ON() if we hit this check.

This will raise a red-flag, if some driver is mapping more than what
is needed. And hopefully identify possible corruptions much earlier.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found