aboutsummaryrefslogtreecommitdiffstats
path: root/fs/squashfs/lzo_wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/squashfs/lzo_wrapper.c')
-rw-r--r--fs/squashfs/lzo_wrapper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/squashfs/lzo_wrapper.c b/fs/squashfs/lzo_wrapper.c
index 244b9fbfff7b..934c17e96590 100644
--- a/fs/squashfs/lzo_wrapper.c
+++ b/fs/squashfs/lzo_wrapper.c
@@ -102,13 +102,13 @@ static int lzo_uncompress(struct squashfs_sb_info *msblk, void *strm,
102 data = squashfs_first_page(output); 102 data = squashfs_first_page(output);
103 buff = stream->output; 103 buff = stream->output;
104 while (data) { 104 while (data) {
105 if (bytes <= PAGE_CACHE_SIZE) { 105 if (bytes <= PAGE_SIZE) {
106 memcpy(data, buff, bytes); 106 memcpy(data, buff, bytes);
107 break; 107 break;
108 } else { 108 } else {
109 memcpy(data, buff, PAGE_CACHE_SIZE); 109 memcpy(data, buff, PAGE_SIZE);
110 buff += PAGE_CACHE_SIZE; 110 buff += PAGE_SIZE;
111 bytes -= PAGE_CACHE_SIZE; 111 bytes -= PAGE_SIZE;
112 data = squashfs_next_page(output); 112 data = squashfs_next_page(output);
113 } 113 }
114 } 114 }