From aee10a8a24a98b3d5f923259ad5f93799e9618b2 Mon Sep 17 00:00:00 2001 From: vitaly Date: Mon, 29 Jun 2009 17:10:00 +0000 Subject: [PATCH] Branch b1_8 b=19207 i=zam i=panda memleak fix for zero ll_get_user_pages case --- lustre/llite/rw26.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/llite/rw26.c b/lustre/llite/rw26.c index 2be2987..c07768f 100644 --- a/lustre/llite/rw26.c +++ b/lustre/llite/rw26.c @@ -133,7 +133,7 @@ static inline int ll_get_user_pages(int rw, unsigned long user_addr, *max_pages, (rw == READ), 0, *pages, NULL); up_read(¤t->mm->mmap_sem); - if (unlikely(result < 0)) + if (unlikely(result <= 0)) OBD_FREE(*pages, *max_pages * sizeof(**pages)); } -- 1.8.3.1