Squashfs: use define instead of constant
Its better to use defined name instead of constant Signed-off-by: Ajeet Yadav <ajeet.yadav.77@gmail.com> Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
This commit is contained in:

committed by
Phillip Lougher

parent
192cfd5877
commit
4826d83d9c
@@ -177,8 +177,7 @@ static struct dentry *squashfs_lookup(struct inode *dir, struct dentry *dentry,
|
||||
|
||||
dir_count = le32_to_cpu(dirh.count) + 1;
|
||||
|
||||
/* dir_count should never be larger than 256 */
|
||||
if (dir_count > 256)
|
||||
if (dir_count > SQUASHFS_DIR_COUNT)
|
||||
goto data_error;
|
||||
|
||||
while (dir_count--) {
|
||||
|
Reference in New Issue
Block a user