Re: rc4-mm1 and pwc-unofficial: kernel BUG and scheduling while atomic

From: William Lee Irwin III
Date: Sun Oct 17 2004 - 04:31:59 EST


On Sun, Oct 17, 2004 at 09:36:14AM +0200, Norbert Preining wrote:
> @@ -1618,7 +1618,7 @@
> pos = (unsigned long)pdev->image_data;
> while (size > 0) {
> page = kvirt_to_pa(pos);
> - if (remap_page_range(vma, start, page, PAGE_SIZE,
> PAGE_SHARED))
> + if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
> return -EAGAIN;
>
> start += PAGE_SIZE;
> the module compiled and loaded without problem, but when starting
> gnomemeeting I get the following kernel BUG and scheduling while atomic:

You need to right shift the argument by PAGE_SHIFT.


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