]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: fix missing fclose() on error paths
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 8 Feb 2022 06:26:18 +0000 (15:26 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 10 Feb 2022 00:17:26 +0000 (09:17 +0900)
commit188bd65775aa0b5c59a799e98988d392e81c9dad
tree8795d50d15a90ce4fb5712b6851c5dd9a020a98d
parentb0d52eaa91fe2ecfac110bde6fc00b26596420ae
kconfig: fix missing fclose() on error paths

The file is not closed when ferror() fails.

Fixes: 5314a1075331 ("kconfig: refactor conf_write_dep()")
Fixes: c32f750f0997 ("kconfig: refactor conf_write_autoconf()")
Reported-by: Ryan Cai <ycaibb@gmail.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/confdata.c