fs: fat: fix set_cluster()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 2 Oct 2018 07:30:45 +0000 (09:30 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 6 Oct 2018 18:09:41 +0000 (14:09 -0400)
commitf105fe7bc5ed6b6075f258eb54ea36c11a963f7b
treee82a6f2239637c059ecf15467180306124dcb23f
parent0d532e911cb7e67e151153289024183bc4f5b257
fs: fat: fix set_cluster()

Avoid CoverityScan warning SIGN_EXTENSION by changing the type of
parameter size of set_cluster().

Avoid leaking stack content when writing an incomplete last sector.

Reported-by: Coverity (CID: 184096)
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
fs/fat/fat_write.c