u-boot-brain/fs
Lokesh Vutla 509b498a50 ext4: Fix comparision of unsigned expression with < 0
In file ext4fs.c funtion ext4fs_read_file() compares an
unsigned expression with < 0 like below

	lbaint_t blknr;
	blknr = read_allocated_block(&(node->inode), i);
	if (blknr < 0)
		return -1;

blknr is of type ulong/uint64_t. read_allocated_block() returns
long int. So comparing blknr with < 0 will always be false. Instead
declare blknr as long int.

Similarly ext4/dev.c does a similar comparison. Drop the redundant
comparison.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2017-04-27 16:49:09 -04:00
..
cbfs cbfs: Fix incorrect CBFS file header size being used 2016-08-16 11:44:09 +08:00
cramfs cramfs: basic symlink support 2017-04-18 10:27:58 -04:00
ext4 ext4: Fix comparision of unsigned expression with < 0 2017-04-27 16:49:09 -04:00
fat fs/fat: Fix unaligned __u16 reads for FAT12 access 2017-01-28 14:04:51 -05:00
jffs2 treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
reiserfs dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
sandbox sandboxfs: Fix resource leak 2016-12-02 10:37:47 -07:00
ubifs Fix spelling of "multiple". 2016-10-31 10:13:16 -04:00
yaffs2 yaffs2: remove redundant condition 2017-04-18 10:29:22 -04:00
zfs dm: Drop the block_dev_desc_t typedef 2016-03-14 15:34:50 -06:00
fs.c dm: blk: Rename get_device_and_partition() 2016-03-14 15:34:50 -06:00
Kconfig kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
Makefile spl: Add EXT support to SPL 2014-10-27 17:54:03 -04:00