File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ static bool btf_type_is_decl_tag(const struct btf_type *t)
468
468
static bool btf_type_is_decl_tag_target (const struct btf_type * t )
469
469
{
470
470
return btf_type_is_func (t ) || btf_type_is_struct (t ) ||
471
- btf_type_is_var (t );
471
+ btf_type_is_var (t ) || btf_type_is_typedef ( t ) ;
472
472
}
473
473
474
474
u32 btf_nr_types (const struct btf * btf )
@@ -3885,7 +3885,7 @@ static int btf_decl_tag_resolve(struct btf_verifier_env *env,
3885
3885
3886
3886
component_idx = btf_type_decl_tag (t )-> component_idx ;
3887
3887
if (component_idx != -1 ) {
3888
- if (btf_type_is_var (next_type )) {
3888
+ if (btf_type_is_var (next_type ) || btf_type_is_typedef ( next_type ) ) {
3889
3889
btf_verifier_log_type (env , v -> t , "Invalid component_idx" );
3890
3890
return - EINVAL ;
3891
3891
}
You can’t perform that action at this time.
0 commit comments