Skip to content

Commit

Permalink
[PATCH] msnd_pinnacle GFP fix
Browse files Browse the repository at this point in the history
Dumb typo - __get_free_page() takes gfp mask (in this case -
GFP_KERNEL), not the page size... 

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Apr 24, 2005
1 parent 0142496 commit fa732f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/oss/msnd_pinnacle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa732f5

Please sign in to comment.