modpost: do not write out any file when error occurred
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 24 Apr 2022 19:07:46 +0000 (04:07 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 7 May 2022 18:16:59 +0000 (03:16 +0900)
commitc155a47d83ab0b5ee96ebe1721057cba1936d0d5
tree663b91dff82e2411306945ca145f68b8c732d846
parent15a28c7c72917f96820e9e9ccd113606363ba3ac
modpost: do not write out any file when error occurred

If an error occurs, modpost will fail anyway. Do not write out
any content (, which might be invalid).

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
scripts/mod/modpost.c