diff options
author | 2022-01-10 09:38:07 +0800 | |
---|---|---|
committer | 2022-01-11 19:07:42 -0100 | |
commit | 4a39156166b90465da0f9a33b3442d63b5651bec (patch) | |
tree | 5f47b65676f7ae26116ae56ca2fa84d728ba4af8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | |
parent | drm/mst: use DP_GET_SINK_COUNT() for sink count in ESI (diff) | |
download | wireguard-linux-4a39156166b90465da0f9a33b3442d63b5651bec.tar.xz wireguard-linux-4a39156166b90465da0f9a33b3442d63b5651bec.zip |
drm/v3d/v3d_drv: Check for error num after setting mask
Because of the possible failure of the dma_supported(), the
dma_set_mask_and_coherent() may return error num.
Therefore, it should be better to check it and return the error if
fails.
Also, we can create a variable for the mask to solve the
alignment issue.
Fixes: 334dd38a3878 ("drm/v3d: Set dma_mask as well as coherent_dma_mask")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220110013807.4105270-1-jiasheng@iscas.ac.cn
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c')
0 files changed, 0 insertions, 0 deletions