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>
static int dsp_read(char __user *buf, size_t len)
{
int count = len;
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;
if (!page)
return -ENOMEM;