File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1160,7 +1160,7 @@ static int load_elf_binary(struct linux_binprm *bprm)
1160
1160
error = elf_map (bprm -> file , load_bias + vaddr , elf_ppnt ,
1161
1161
elf_prot , elf_flags , total_size );
1162
1162
if (BAD_ADDR (error )) {
1163
- retval = IS_ERR (( void * ) error ) ?
1163
+ retval = IS_ERR_VALUE ( error ) ?
1164
1164
PTR_ERR ((void * )error ) : - EINVAL ;
1165
1165
goto out_free_dentry ;
1166
1166
}
@@ -1245,7 +1245,7 @@ static int load_elf_binary(struct linux_binprm *bprm)
1245
1245
interpreter ,
1246
1246
load_bias , interp_elf_phdata ,
1247
1247
& arch_state );
1248
- if (!IS_ERR (( void * ) elf_entry )) {
1248
+ if (!IS_ERR_VALUE ( elf_entry )) {
1249
1249
/*
1250
1250
* load_elf_interp() returns relocation
1251
1251
* adjustment
@@ -1254,7 +1254,7 @@ static int load_elf_binary(struct linux_binprm *bprm)
1254
1254
elf_entry += interp_elf_ex -> e_entry ;
1255
1255
}
1256
1256
if (BAD_ADDR (elf_entry )) {
1257
- retval = IS_ERR (( void * ) elf_entry ) ?
1257
+ retval = IS_ERR_VALUE ( elf_entry ) ?
1258
1258
(int )elf_entry : - EINVAL ;
1259
1259
goto out_free_dentry ;
1260
1260
}
You can’t perform that action at this time.
0 commit comments