From: vitaly Date: Mon, 29 Jun 2009 17:10:00 +0000 (+0000) Subject: Branch b1_8 X-Git-Tag: v1_8_2_01~1^2~283 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=aee10a8a24a98b3d5f923259ad5f93799e9618b2;p=fs%2Flustre-release.git Branch b1_8 b=19207 i=zam i=panda memleak fix for zero ll_get_user_pages case --- 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)); }