lkml.org 
[lkml]   [2005]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: __iounmap: bad address c00f0000 (Re: 2.6.10-bk5)
On Mon, Jan 03, 2005 at 12:49:43PM -0500, Len Brown wrote:
> Suggested-by: Al Viro
> Signed-off-by: Len Brown <len.brown@intel.com>
>
>
> ===== arch/i386/kernel/dmi_scan.c 1.74 vs edited =====
> --- 1.74/arch/i386/kernel/dmi_scan.c 2004-12-28 14:07:48 -05:00
> +++ edited/arch/i386/kernel/dmi_scan.c 2005-01-03 12:46:33 -05:00
> @@ -126,12 +126,12 @@
> dmi_printk((KERN_INFO "DMI table at 0x%08X.\n",
> base));
> if(dmi_table(base,len, num, decode)==0) {
> - iounmap(p);
> + /* too early to call iounmap(p); */

One comment: iounmap() on result of ioremap(ISA address) is a no-op.
The problem in this case is that we are too early in setup sequence
and that confuses iounmap() into not recognizing that fact. So we
end up trying to find VMA created by ioremap() and (surprise, surprise)
find none. Which gives the warning in question. We *still* do nothing,
so everything actually works fine, but we do get confused "WTF is going
on?" in the logs.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.039 / U:22.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site