[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4935B249.6020906@gmail.com>
Date: Tue, 02 Dec 2008 23:10:17 +0100
From: Roel Kluin <roel.kluin@...il.com>
To: jack@...e.cz
CC: lkml <linux-kernel@...r.kernel.org>
Subject: [PATCH] udf: in scan_anchors() sector_t last[] is unsigned and cannot
be negative.
sector_t last[] is unsigned and cannot be negative.
Signed-off-by: Roel Kluin <roel.kluin@...il.com>
---
Maybe you can suggest a less ugly solution?
diff --git a/fs/udf/super.c b/fs/udf/super.c
index e25e701..d53c6fc 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -721,7 +721,7 @@ 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)
+ if (last[i] > last[0] + 1)
continue;
if (last[i] >= sb->s_bdev->bd_inode->i_size >>
sb->s_blocksize_bits)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists