]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] relayfs: fix bogus param value in call to vmap
authorTom Zanussi <zanussi@us.ibm.com>
Sun, 9 Oct 2005 15:41:32 +0000 (10:41 -0500)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 10 Oct 2005 15:39:50 +0000 (08:39 -0700)
The third param in this call to vmap shouldn't be GFP_KERNEL, which
makes no sense, but rather VM_MAP.  Thanks to Al Viro for spotting
this.

Signed-off-by: Tom Zanussi <zanussi@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/relayfs/buffers.c

index 2aa8e27199999d6eb7bcdb09cb7114bc33edab23..84e21ffa5ca8e8e695dcfcad6fa5a3eb3bb9e7cc 100644 (file)
@@ -109,7 +109,7 @@ static void *relay_alloc_buf(struct rchan_buf *buf, unsigned long size)
                if (unlikely(!buf->page_array[i]))
                        goto depopulate;
        }
-       mem = vmap(buf->page_array, n_pages, GFP_KERNEL, PAGE_KERNEL);
+       mem = vmap(buf->page_array, n_pages, VM_MAP, PAGE_KERNEL);
        if (!mem)
                goto depopulate;