]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - mm/readahead.c
[PATCH] swsusp: add resume_offset command line parameter
[karo-tx-linux.git] / mm / readahead.c
index 1ba736ac03672bc2863662f32ccf972d3189673b..23cb61a01c6e4123f313f5487a5942e7ee4c5fe4 100644 (file)
@@ -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;
        }