File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3766,12 +3766,12 @@ static int wm_adsp_buffer_populate(struct wm_adsp_compr_buf *buf)
3766
3766
ret = wm_adsp_buffer_read (buf , caps -> region_defs [i ].base_offset ,
3767
3767
& region -> base_addr );
3768
3768
if (ret < 0 )
3769
- return ret ;
3769
+ goto err ;
3770
3770
3771
3771
ret = wm_adsp_buffer_read (buf , caps -> region_defs [i ].size_offset ,
3772
3772
& offset );
3773
3773
if (ret < 0 )
3774
- return ret ;
3774
+ goto err ;
3775
3775
3776
3776
region -> cumulative_size = offset ;
3777
3777
@@ -3782,6 +3782,10 @@ static int wm_adsp_buffer_populate(struct wm_adsp_compr_buf *buf)
3782
3782
}
3783
3783
3784
3784
return 0 ;
3785
+
3786
+ err :
3787
+ kfree (buf -> regions );
3788
+ return ret ;
3785
3789
}
3786
3790
3787
3791
static void wm_adsp_buffer_clear (struct wm_adsp_compr_buf * buf )
You can’t perform that action at this time.
0 commit comments