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

William Lee Irwin III
2004-10-17T09:30:27Z

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