[PATCH] Free correct argument in post_ppoll()

"Kirill A. Shutemov" <[email protected]> Wed, 18 Nov 2015 15:58:04 +0200
Newsgroups org.kernel.vger.trinity
Message-ID <1447855084-64843-1-git-send-email-kirill.shutemov@linux.intel.com>
sanitise_ppoll() allocates first and third arguments and we need to free
them in post_ppoll(), not first and fourth.

Signed-off-by: Kirill A. Shutemov <[email protected]>
---
 syscalls/poll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syscalls/poll.c b/syscalls/poll.c
index 2e491eca4ba1..da9ac671c4bc 100644
--- a/syscalls/poll.c
+++ b/syscalls/poll.c
@@ -80,7 +80,7 @@ static void sanitise_ppoll(struct syscallrecord *rec)
 static void post_ppoll(struct syscallrecord *rec)
 {
 	freeptr(&rec->a1);
-	freeptr(&rec->a4);
+	freeptr(&rec->a3);
 }
 
 struct syscallentry syscall_ppoll = {
-- 
2.6.2