uncompress.c (f0eef25339f92f7cd4aeea23d9ae97987a5a1e82) | uncompress.c (98310e581e098514867573031b2bfa4ba89c0d93) |
---|---|
1/* 2 * uncompress.c 3 * 4 * (C) Copyright 1999 Linus Torvalds 5 * 6 * cramfs interfaces to the uncompression library. There's really just 7 * three entrypoints: 8 * --- 36 unchanged lines hidden (view full) --- 45 err = zlib_inflate(&stream, Z_FINISH); 46 if (err != Z_STREAM_END) 47 goto err; 48 return stream.total_out; 49 50err: 51 printk("Error %d while decompressing!\n", err); 52 printk("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen); | 1/* 2 * uncompress.c 3 * 4 * (C) Copyright 1999 Linus Torvalds 5 * 6 * cramfs interfaces to the uncompression library. There's really just 7 * three entrypoints: 8 * --- 36 unchanged lines hidden (view full) --- 45 err = zlib_inflate(&stream, Z_FINISH); 46 if (err != Z_STREAM_END) 47 goto err; 48 return stream.total_out; 49 50err: 51 printk("Error %d while decompressing!\n", err); 52 printk("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen); |
53 return 0; | 53 return -EIO; |
54} 55 56int cramfs_uncompress_init(void) 57{ 58 if (!initialized++) { 59 stream.workspace = vmalloc(zlib_inflate_workspacesize()); 60 if ( !stream.workspace ) { 61 initialized = 0; --- 16 unchanged lines hidden --- | 54} 55 56int cramfs_uncompress_init(void) 57{ 58 if (!initialized++) { 59 stream.workspace = vmalloc(zlib_inflate_workspacesize()); 60 if ( !stream.workspace ) { 61 initialized = 0; --- 16 unchanged lines hidden --- |