Commit 6176eeb2 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Futex update III: don't use put_page...

This uses page_cache_release() instead of put_page(), as it might
be a pagecache page.
parent cda1e453
......@@ -33,6 +33,7 @@
#include <linux/futex.h>
#include <linux/highmem.h>
#include <linux/time.h>
#include <linux/pagemap.h>
#include <asm/uaccess.h>
/* Simple "sleep if unchanged" interface. */
......@@ -215,7 +216,7 @@ asmlinkage int sys_futex(void *uaddr, int op, int val, struct timespec *utime)
default:
ret = -EINVAL;
}
put_page(page);
page_cache_release(page);
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment