fat: fix possible overflow for fat_clusters
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Fri, 24 May 2013 22:55:08 +0000 (15:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 May 2013 23:22:50 +0000 (16:22 -0700)
commit7b92d03c3239f43e5b86c9cc9630f026d36ee995
tree230d35077a9c99203a86a7abc94ce8d6645e23fb
parent5eeb929390de7d5219483a1ca10cce4a84066099
fat: fix possible overflow for fat_clusters

Intermediate value of fat_clusters can be overflowed on 32bits arch.

Reported-by: Krzysztof Strasburger <strasbur@chkw386.ch.pwr.wroc.pl>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/inode.c