ubsan: no need to unset panic_on_warn in ubsan_epilogue()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 16 Feb 2022 04:32:13 +0000 (15:32 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 17 Feb 2022 03:46:58 +0000 (14:46 +1100)
commit460380983c8efdf37242165f24237dfbf036731f
treec6fc89b4a8ffaa4376a7119ef1d0730ab9f8735b
parenta03a26e9476c978c07f82b2752400a88f4c47328
ubsan: no need to unset panic_on_warn in ubsan_epilogue()

panic_on_warn is unset inside panic(), so no need to unset it before
calling panic() in ubsan_epilogue().

Link: https://lkml.kernel.org/r/1644324666-15947-5-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Marco Elver <elver@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Xuefeng Li <lixuefeng@loongson.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
lib/ubsan.c