mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
amd/display: Fix potential null dereference in dce_calcs.c
Reported by smatch: bw_calcs() error: potential null dereference 'data' Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
d83e87b239
commit
f368d3bfde
1 changed files with 2 additions and 0 deletions
|
|
@ -2794,6 +2794,8 @@ bool bw_calcs(struct dc_context *ctx,
|
|||
{
|
||||
struct bw_calcs_data *data = kzalloc(sizeof(struct bw_calcs_data),
|
||||
GFP_KERNEL);
|
||||
if (!data)
|
||||
return false;
|
||||
|
||||
populate_initial_data(pipe, pipe_count, data);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue