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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:49:12 +0000 (12:49 -0700)
commit4ae8c3c597f033134423903131b02f964a5f3b72
treef5cfd84a56072b795374144b9ea7dfbcf2373f65
parentf6b6c15a9c4e1b5590b9524e1dc8f1e902e0aad7
fat: fix possible overflow for fat_clusters

commit 7b92d03c3239f43e5b86c9cc9630f026d36ee995 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/fat/inode.c