decompressor.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) decompressor.c (09cbfeaf1a5a67bfb3201e0c83c810cecb2efa5a)
1/*
2 * Squashfs - a compressed read only filesystem for Linux
3 *
4 * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5 * Phillip Lougher <phillip@squashfs.org.uk>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 88 unchanged lines hidden (view full) ---

97 void *buffer = NULL, *comp_opts;
98 struct squashfs_page_actor *actor = NULL;
99 int length = 0;
100
101 /*
102 * Read decompressor specific options from file system if present
103 */
104 if (SQUASHFS_COMP_OPTS(flags)) {
1/*
2 * Squashfs - a compressed read only filesystem for Linux
3 *
4 * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5 * Phillip Lougher <phillip@squashfs.org.uk>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License

--- 88 unchanged lines hidden (view full) ---

97 void *buffer = NULL, *comp_opts;
98 struct squashfs_page_actor *actor = NULL;
99 int length = 0;
100
101 /*
102 * Read decompressor specific options from file system if present
103 */
104 if (SQUASHFS_COMP_OPTS(flags)) {
105 buffer = kmalloc(PAGE_CACHE_SIZE, GFP_KERNEL);
105 buffer = kmalloc(PAGE_SIZE, GFP_KERNEL);
106 if (buffer == NULL) {
107 comp_opts = ERR_PTR(-ENOMEM);
108 goto out;
109 }
110
111 actor = squashfs_page_actor_init(&buffer, 1, 0);
112 if (actor == NULL) {
113 comp_opts = ERR_PTR(-ENOMEM);

--- 35 unchanged lines hidden ---
106 if (buffer == NULL) {
107 comp_opts = ERR_PTR(-ENOMEM);
108 goto out;
109 }
110
111 actor = squashfs_page_actor_init(&buffer, 1, 0);
112 if (actor == NULL) {
113 comp_opts = ERR_PTR(-ENOMEM);

--- 35 unchanged lines hidden ---