fat: root directory cluster only makes sense for FAT32
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Fri, 19 Aug 2011 09:32:34 +0000 (09:32 +0000)
committerWolfgang Denk <wd@denx.de>
Sat, 1 Oct 2011 19:52:06 +0000 (21:52 +0200)
commit40e219165bcdf450cc69976fa129f2ef9889973a
treee4dd214f13a6cfdacc2dec8f0e93d15a170737c2
parent60b36f0fc7c77e98b9d55c237e455c42a1caa44b
fat: root directory cluster only makes sense for FAT32

The root directory cluster field only exists in a FAT32 boot sector, so the
'root_cluster' variable in do_fat_read() contains garbage in case of FAT12/16.
Make it contain 0 instead as this is what is passed to get_vfatname() in that
case anyway.

Signed-off-by: Sergei Shtylyov <sshtylyov@mvista.com>
fs/fat/fat.c