Skip to contentSkip to conversation

relayfs: fix bogus param value in call to vmap

PATCH New Tom Zanussi 1 participant 1 message Oct 9, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Tom

fs/relayfs/buffers.c +1 -1
@@ -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;