Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] relayfs: fix bogus param value in call to vmap

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>

authored by

Tom Zanussi and committed by
Linus Torvalds
1cc956e1 eb1b74e0

+1 -1
+1 -1
fs/relayfs/buffers.c
··· 109 109 if (unlikely(!buf->page_array[i])) 110 110 goto depopulate; 111 111 } 112 - mem = vmap(buf->page_array, n_pages, GFP_KERNEL, PAGE_KERNEL); 112 + mem = vmap(buf->page_array, n_pages, VM_MAP, PAGE_KERNEL); 113 113 if (!mem) 114 114 goto depopulate; 115 115