kconfig: Update config changed flag before calling callback
authorJurica Vukadin <jura@vukad.in>
Tue, 7 Mar 2023 19:40:39 +0000 (20:40 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 13 Mar 2023 18:46:09 +0000 (03:46 +0900)
commitee06a3ef7e3cddb62b90ac40aa661d3c12f7cabc
tree026d63bbcff874d62bae771b69464357145ad7c6
parentced0f245ed951e2b8bd68f79c15238d7dd253662
kconfig: Update config changed flag before calling callback

Prior to commit 5ee546594025 ("kconfig: change sym_change_count to a
boolean flag"), the conf_updated flag was set to the new value *before*
calling the callback. xconfig's save action depends on this behaviour,
because xconfig calls conf_get_changed() directly from the callback and
now sees the old value, thus never enabling the save button or the
shortcut.

Restore the previous behaviour.

Fixes: 5ee546594025 ("kconfig: change sym_change_count to a boolean flag")
Signed-off-by: Jurica Vukadin <jura@vukad.in>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/confdata.c