Skip to content

Commit

Permalink
udf: unsigned last[i] cannot be less than 0
Browse files Browse the repository at this point in the history
unsigned last[i] cannot be less than 0

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
  • Loading branch information
roel kluin authored and Jan Kara committed Apr 2, 2009
1 parent 7ac9bcd commit 3093055
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/udf/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,6 @@ static sector_t udf_scan_anchors(struct super_block *sb, sector_t lastblock)
* however, if the disc isn't closed, it could be 512 */

for (i = 0; i < ARRAY_SIZE(last); i++) {
if (last[i] < 0)
continue;
if (last[i] >= sb->s_bdev->bd_inode->i_size >>
sb->s_blocksize_bits)
continue;
Expand Down

0 comments on commit 3093055

Please sign in to comment.