]> git.karo-electronics.de Git - linux-beck.git/blobdiff - net/9p/trans_virtio.c
virtio: 9p: correctly pass physical address to userspace for high pages
[linux-beck.git] / net / 9p / trans_virtio.c
index 35b8911b1c8e5de48c5e6bab97e411ca55302ece..fd05c81cb348fe04a0701aad70d672a7f17f238e 100644 (file)
@@ -39,6 +39,7 @@
 #include <linux/inet.h>
 #include <linux/idr.h>
 #include <linux/file.h>
+#include <linux/highmem.h>
 #include <linux/slab.h>
 #include <net/9p/9p.h>
 #include <linux/parser.h>
@@ -325,7 +326,7 @@ static int p9_get_mapped_pages(struct virtio_chan *chan,
                int count = nr_pages;
                while (nr_pages) {
                        s = rest_of_page(data);
-                       pages[index++] = virt_to_page(data);
+                       pages[index++] = kmap_to_page(data);
                        data += s;
                        nr_pages--;
                }