binfmt_elf: replace IS_ERR() with IS_ERR_VALUE()
authorBo Liu <liubo03@inspur.com>
Tue, 15 Nov 2022 03:17:57 +0000 (22:17 -0500)
committerKees Cook <keescook@chromium.org>
Thu, 17 Nov 2022 23:05:21 +0000 (15:05 -0800)
commitdc64cc12bcd14219afb91b55d23192c3eb45aa43
tree169277df2bcc79fe6eb79dd9d555d951f1b84fd4
parentef20c5139c3157b5c6eda46f496952bddffe9ad6
binfmt_elf: replace IS_ERR() with IS_ERR_VALUE()

Avoid typecasts that are needed for IS_ERR() and use IS_ERR_VALUE()
instead.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20221115031757.2426-1-liubo03@inspur.com
fs/binfmt_elf.c