LF-1510-2: gpu: drm: dw_hdmi: null return value check
null return value check to reslove coverity ID 9535965. Signed-off-by: Sandor Yu <Sandor.yu@nxp.com> Reviewed-by: Fancy Fang <chen.fang@nxp.com> (cherry picked from commit f8ab16d05d84d0731a8afe2fbfe423a6a59209f7)5.4-rM2-2.2.x-imx-squashed
parent
3119a403b7
commit
d37f329572
|
@ -400,6 +400,9 @@ static int dw_hdmi_imx_bind(struct device *dev, struct device *master,
|
|||
return -ENOMEM;
|
||||
|
||||
match = of_match_node(dw_hdmi_imx_dt_ids, pdev->dev.of_node);
|
||||
if (!match)
|
||||
return -ENODEV;
|
||||
|
||||
plat_data = devm_kmemdup(&pdev->dev, match->data,
|
||||
sizeof(*plat_data), GFP_KERNEL);
|
||||
if (!plat_data)
|
||||
|
|
Loading…
Reference in New Issue