kconfig: add fflush() before ferror() check
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 12 Feb 2022 16:18:37 +0000 (01:18 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 18 Feb 2022 02:33:35 +0000 (11:33 +0900)
commit868653f421cd37e8ec3880da19f0aac93f5c46cc
treec8e2b7931fed6b87bf3161cd97bff46513e487fc
parent5c8166419acf468b5bc3e48f928a040485d3e0c2
kconfig: add fflush() before ferror() check

As David Laight pointed out, there is not much point in calling
ferror() unless you call fflush() first.

Reported-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/confdata.c