u-boot/fs
Marek Vasut ff04f6d122 fs: fat: Fix mkcksum() function parameters
The mkcksum() function now takes one parameter, the pointer to
11-byte wide character array, which it then operates on.

Currently, the function is wrongly passed (dir_entry)->name, which
is only 8-byte wide character array. Though by further inspecting
the dir_entry structure, it can be noticed that the name[8] entry
is immediatelly followed by ext[3] entry. Thus, name[8] and ext[3]
in the dir_entry structure actually work as this 11-byte wide array
since they're placed right next to each other by current compiler
behavior.

Depending on this is obviously wrong, thus fix this by correctly
passing both (dir_entry)->name and (dir_entry)->ext to the mkcksum()
function and adjust the function appropriately.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@ti.com>
2012-10-17 07:59:11 -07:00
..
cramfs gunzip: rename z{alloc, free} to gz{alloc, free} 2012-04-30 16:54:51 +02:00
ext4 ext4: Rename block group descriptor table from gd to bgd 2012-10-03 18:21:33 -07:00
fat fs: fat: Fix mkcksum() function parameters 2012-10-17 07:59:11 -07:00
fdos Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
jffs2 linux/compat.h: rename from linux/mtd/compat.h 2012-04-30 16:54:51 +02:00
reiserfs cmd_reiser: use common get_device_and_partition function 2012-09-25 14:49:18 -07:00
ubifs ARM: prevent misaligned array inits 2012-10-15 11:53:07 -07:00
yaffs2 yaffs2: Fix GCC 4.6 compile warnings 2012-10-08 11:15:04 -07:00
zfs cmd_zfs: use common get_device_and_partition function 2012-09-25 14:49:17 -07:00
Makefile ext4fs ls load support 2012-08-09 23:47:43 +02:00