projects/linux·commit fa732f55

[PATCH] msnd_pinnacle GFP fix

fa732f55 · Al Viro <[email protected]> · 2005-04-24 12:28:34 -07:00

Dumb typo - __get_free_page() takes gfp mask (in this case -
GFP_KERNEL), not the page size... 

Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
fa732f556896836e88cd662ee7a664c4db6d080d
Parents
01424961

Changes

1 files changed · +1 −1

FileStatusAddDelContent
sound/oss/msnd_pinnacle.cmodified+1−1View file

sound/oss/msnd_pinnacle.c

View file
diff --git a/sound/oss/msnd_pinnacle.c b/sound/oss/msnd_pinnacle.c
index 6ba03f8..0c2db65 100644
--- a/sound/oss/msnd_pinnacle.c
+++ b/sound/oss/msnd_pinnacle.c
@@ -892,7 +892,7 @@ static __inline__ int pack_DAPF_to_DAPQ(register int start)
static int dsp_read(char __user *buf, size_t len)
{
int count = len;
- char *page = (char *)__get_free_page(PAGE_SIZE);
+ char *page = (char *)__get_free_page(GFP_KERNEL);
if (!page)
return -ENOMEM;