Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30930554 authored by roel kluin's avatar roel kluin Committed by Jan Kara
Browse files

udf: unsigned last[i] cannot be less than 0



unsigned last[i] cannot be less than 0

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 7ac9bcd5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;