fs: fat: get_contents() always returns -1 for errors
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 12 Sep 2019 17:19:30 +0000 (19:19 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2019 23:05:14 +0000 (19:05 -0400)
commitf13683816b9d0aada2546343d77bb87925505c46
treea0e5aefcaead15b33f68ff16a08a324828cb57fe
parentc7a86d1645325697372b404f0b8cadac8a722ce9
fs: fat: get_contents() always returns -1 for errors

If out of memory, return -1 and not -ENOMEM from get_contents().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
fs/fat/fat.c