Commit ed40244e authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

We need to use "memset_io()" when accessing PCI

mapped memory.

A regular "memset()" may be using cache control
instructions etc, which is not appropriate for
memory-mapped IO.

This also fixes a warning.
parent 18857d8e
......@@ -2204,7 +2204,7 @@ static int radeonfb_pci_register (struct pci_dev *pdev,
rinfo->mapped_vram /= 2;
continue;
}
memset(rinfo->fb_base, 0, rinfo->mapped_vram);
memset_io(rinfo->fb_base, 0, rinfo->mapped_vram);
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment