projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edf2e28
)
Squashfs: frag_size should be signed, as it can hold an error result
author
Roel Kluin
<roel.kluin@gmail.com>
Thu, 5 Mar 2009 00:55:31 +0000
(
00:55
+0000)
committer
Phillip Lougher
<phillip@lougher.demon.co.uk>
Thu, 5 Mar 2009 00:55:31 +0000
(
00:55
+0000)
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
fs/squashfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/squashfs/inode.c
b/fs/squashfs/inode.c
index 7a63398bb855ab6982810ae366b577139e6abe92..9101dbde39ece6a9ca5d8b47d3344c1f3bdc6879 100644
(file)
--- a/
fs/squashfs/inode.c
+++ b/
fs/squashfs/inode.c
@@
-133,7
+133,8
@@
int squashfs_read_inode(struct inode *inode, long long ino)
type = le16_to_cpu(sqshb_ino->inode_type);
switch (type) {
case SQUASHFS_REG_TYPE: {
- unsigned int frag_offset, frag_size, frag;
+ unsigned int frag_offset, frag;
+ int frag_size;
u64 frag_blk;
struct squashfs_reg_inode *sqsh_ino = &squashfs_ino.reg;
@@
-175,7
+176,8
@@
int squashfs_read_inode(struct inode *inode, long long ino)
break;
}
case SQUASHFS_LREG_TYPE: {
- unsigned int frag_offset, frag_size, frag;
+ unsigned int frag_offset, frag;
+ int frag_size;
u64 frag_blk;
struct squashfs_lreg_inode *sqsh_ino = &squashfs_ino.lreg;