commit | 8eb3b8a0a0d6a4213dc1ad2c7bbae60f076b04d7 | [log] [tgz] |
---|---|---|
author | Manish Katiyar <mkatiyar@gmail.com> | Tue Jul 15 11:10:19 2008 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Tue Jul 15 11:10:19 2008 -0400 |
tree | 6341b21a499c5264e0e0068fda7b9e84e5f4bf5e | |
parent | 363289510c9f58bf31cd914e877b066afb2fd72d [diff] |
ext2fs_read_inode: Check the validity of the inode number earlier It looks like the right place to check for ino=0 in ext2fs_read_inode_full() is before creating the inode cache, otherwise since we set icache[i].ino = 0 in create_icache(), it will match the loop below and thus we return a wrong value. Signed-off-by: "Manish Katiyar" <mkatiyar@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>