File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4605,8 +4605,10 @@ int check(struct objtool_file *file)
4605
4605
init_cfi_state (& force_undefined_cfi );
4606
4606
force_undefined_cfi .force_undefined = true;
4607
4607
4608
- if (!cfi_hash_alloc (1UL << (file -> elf -> symbol_bits - 3 )))
4608
+ if (!cfi_hash_alloc (1UL << (file -> elf -> symbol_bits - 3 ))) {
4609
+ ret = -1 ;
4609
4610
goto out ;
4611
+ }
4610
4612
4611
4613
cfi_hash_add (& init_cfi );
4612
4614
cfi_hash_add (& func_cfi );
@@ -4623,7 +4625,7 @@ int check(struct objtool_file *file)
4623
4625
if (opts .retpoline ) {
4624
4626
ret = validate_retpoline (file );
4625
4627
if (ret < 0 )
4626
- return ret ;
4628
+ goto out ;
4627
4629
warnings += ret ;
4628
4630
}
4629
4631
@@ -4659,7 +4661,7 @@ int check(struct objtool_file *file)
4659
4661
*/
4660
4662
ret = validate_unrets (file );
4661
4663
if (ret < 0 )
4662
- return ret ;
4664
+ goto out ;
4663
4665
warnings += ret ;
4664
4666
}
4665
4667
@@ -4722,7 +4724,7 @@ int check(struct objtool_file *file)
4722
4724
if (opts .prefix ) {
4723
4725
ret = add_prefix_symbols (file );
4724
4726
if (ret < 0 )
4725
- return ret ;
4727
+ goto out ;
4726
4728
warnings += ret ;
4727
4729
}
4728
4730
You can’t perform that action at this time.
0 commit comments