diff options
| author | Dan Carpenter <[email protected]> | 2021-05-15 09:50:57 +0000 |
|---|---|---|
| committer | Neil Armstrong <[email protected]> | 2021-05-18 11:16:37 +0000 |
| commit | 337ed732b35cdd7c8119d9464b40b6b539b75a25 (patch) | |
| tree | 5fc04053363ff90b238d5c12b191013af4256cd2 /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
| parent | drm: bridge: it66121: fix an error code in it66121_probe() (diff) | |
| download | kernel-337ed732b35cdd7c8119d9464b40b6b539b75a25.tar.gz kernel-337ed732b35cdd7c8119d9464b40b6b539b75a25.zip | |
drm: bridge: it66121: fix a resource leak in probe
In the original code if the "ctx = devm_kzalloc()" allocation failed
then we should have called of_node_put(ep); before returning. It's
actually a bit easier to do the allocation first before assigning
ep = of_graph_get_endpoint_by_regs().
Fixes: 988156dc2fc9 ("drm: bridge: add it66121 driver")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Neil Armstrong <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/YJ+ZgXTFa6voZuJG@mwanda
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions
