Skip to content

Commit

Permalink
[PATCH] relayfs: fix bogus param value in call to vmap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tom Zanussi authored and Linus Torvalds committed Oct 10, 2005
1 parent eb1b74e commit 1cc956e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/relayfs/buffers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1cc956e

Please sign in to comment.