fat: correct ATTR_VFAT check
authorJ. Vijayanand <vijayanand.jayaraman@in.bosch.com>
Wed, 19 Oct 2011 07:43:08 +0000 (07:43 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 27 Oct 2011 21:53:57 +0000 (23:53 +0200)
commit206d68fdd41e4942825cfc4a91a096297b654a24
treec1d8cabd43e514b1ca67a9febb37261ab97e2c71
parente116cc069fa4cbe51f3dab84698bc0ac57085f62
fat: correct ATTR_VFAT check

ATTR_VFAT condition requires multiple bits to be set but the present
condition checking in do_fat_read() & get_dentfromdir() ends up
passing on even a single bit being set.

Signed-off-by: J. Vijayanand <vijayanand.jayaraman@in.bosch.com>
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
fs/fat/fat.c