diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2023-09-12 17:34:03 +0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-10-18 18:15:10 -0700 |
commit | b82681042724924ae3ba0f2f2eeec217fa31e830 (patch) | |
tree | 1864c590230b1525232f24418ac80fed2c1a1638 /drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | |
parent | 0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff) |
clk: mediatek: clk-mt6765: Add check for mtk_alloc_clk_data
Add the check for the return value of mtk_alloc_clk_data() in order to
avoid NULL pointer dereference.
Fixes: 1aca9939bf72 ("clk: mediatek: Add MT6765 clock support")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20230912093407.21505-1-jiasheng@iscas.ac.cn
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c')
0 files changed, 0 insertions, 0 deletions