X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Freadahead.c;h=23cb61a01c6e4123f313f5487a5942e7ee4c5fe4;hb=ef91fd522ba3c88d9c68261c243567bc4c5a8f55;hp=1ba736ac03672bc2863662f32ccf972d3189673b;hpb=946b92437e550d6ed80213bf54a1f383e141aede;p=linux-2.6 diff --git a/mm/readahead.c b/mm/readahead.c index 1ba736ac03..23cb61a01c 100644 --- a/mm/readahead.c +++ b/mm/readahead.c @@ -173,6 +173,8 @@ static int read_pages(struct address_space *mapping, struct file *filp, if (mapping->a_ops->readpages) { ret = mapping->a_ops->readpages(filp, mapping, pages, nr_pages); + /* Clean up the remaining pages */ + put_pages_list(pages); goto out; }