diff options
Diffstat (limited to 'net/9p')
-rw-r--r-- | net/9p/trans_common.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/9p/trans_common.c b/net/9p/trans_common.c index de8df957867d..2ee3879161b1 100644 --- a/net/9p/trans_common.c +++ b/net/9p/trans_common.c | |||
@@ -24,11 +24,11 @@ | |||
24 | */ | 24 | */ |
25 | void p9_release_pages(struct page **pages, int nr_pages) | 25 | void p9_release_pages(struct page **pages, int nr_pages) |
26 | { | 26 | { |
27 | int i = 0; | 27 | int i; |
28 | while (pages[i] && nr_pages--) { | 28 | |
29 | put_page(pages[i]); | 29 | for (i = 0; i < nr_pages; i++) |
30 | i++; | 30 | if (pages[i]) |
31 | } | 31 | put_page(pages[i]); |
32 | } | 32 | } |
33 | EXPORT_SYMBOL(p9_release_pages); | 33 | EXPORT_SYMBOL(p9_release_pages); |
34 | 34 | ||