]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0dbbfed1e851a6c7941c04814781faeb9d010762
treec8e2b7931fed6b87bf3161cd97bff46513e487fc
parent88e7eec39fca20b8d78c04ee3cf6b4a158a32f3c
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