diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-03-07 13:38:12 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-03-07 14:24:58 +0100 |
commit | a58c22cfbbf62fefca090334bbd35fd132e92a23 (patch) | |
tree | 78b9351415764f28a88f7ffc00870c52b41d044a /drivers/video | |
parent | video: fbdev: sm712fb: Fix crash in smtcfb_write() (diff) | |
download | linux-a58c22cfbbf62fefca090334bbd35fd132e92a23.tar.xz linux-a58c22cfbbf62fefca090334bbd35fd132e92a23.zip |
video: fbdev: omapfb: Add missing of_node_put() in dvic_probe_of
The device_node pointer is returned by of_parse_phandle() with refcount
incremented. We should use of_node_put() on it when done.
Fixes: f76ee892a99e ("omapfb: copy omapdss & displays for omapfb")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c b/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c index 2fa436475b40..c8ad3ef42bd3 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c @@ -246,6 +246,7 @@ static int dvic_probe_of(struct platform_device *pdev) adapter_node = of_parse_phandle(node, "ddc-i2c-bus", 0); if (adapter_node) { adapter = of_get_i2c_adapter_by_node(adapter_node); + of_node_put(adapter_node); if (adapter == NULL) { dev_err(&pdev->dev, "failed to parse ddc-i2c-bus\n"); omap_dss_put_device(ddata->in); |