* [PATCH] relayfs: fix bogus param value in call to vmap
@ 2005-10-09 15:41 Tom Zanussi
0 siblings, 0 replies; only message in thread
From: Tom Zanussi @ 2005-10-09 15:41 UTC (permalink / raw)
To: torvalds; +Cc: viro, linux-kernel
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.
Tom
Signed-off-by: Tom Zanussi <zanussi@us.ibm.com>
diff --git a/fs/relayfs/buffers.c b/fs/relayfs/buffers.c
--- a/fs/relayfs/buffers.c
+++ b/fs/relayfs/buffers.c
@@ -109,7 +109,7 @@ static void *relay_alloc_buf(struct rcha
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-09 15:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-09 15:41 [PATCH] relayfs: fix bogus param value in call to vmap Tom Zanussi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®