diff options
| author | NĂcolas F. R. A. Prado <[email protected]> | 2022-06-13 16:37:05 +0000 |
|---|---|---|
| committer | Robert Foss <[email protected]> | 2022-06-15 16:03:44 +0000 |
| commit | 3f49f7591e7150c502aa8d04354941ec2394153f (patch) | |
| tree | 2d003616fcd90ffdcb2bc2669bb36072bbb6a39f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | Revert "fbdev: vesafb: Allow to be built if COMPILE_TEST is enabled" (diff) | |
| download | kernel-3f49f7591e7150c502aa8d04354941ec2394153f.tar.gz kernel-3f49f7591e7150c502aa8d04354941ec2394153f.zip | |
drm/bridge: anx7625: Zero error variable when panel bridge not present
While parsing the DT, the anx7625 driver checks for the presence of a
panel bridge on endpoint 1. If it is missing, pdata->panel_bridge stores
the error pointer and the function returns successfully without first
cleaning that variable. This is an issue since other functions later
check for the presence of a panel bridge by testing the trueness of that
variable.
In order to ensure proper behavior, zero out pdata->panel_bridge before
returning when no panel bridge is found.
Fixes: 9e82ea0fb1df ("drm/bridge: anx7625: switch to devm_drm_of_get_bridge")
Signed-off-by: NĂcolas F. R. A. Prado <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Signed-off-by: Robert Foss <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
