diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2021-07-09 22:07:17 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2021-07-12 16:25:53 +0200 |
commit | b557a5f8da5798d27370ed6b73e673aae33efd55 (patch) | |
tree | 6beedc6b7bb19cceb30898a164280428f1ba6111 /include/drm/drm_bridge.h | |
parent | 7dc924d7c595b21c084644be6d18014aae505b0f (diff) | |
download | lwn-b557a5f8da5798d27370ed6b73e673aae33efd55.tar.gz lwn-b557a5f8da5798d27370ed6b73e673aae33efd55.zip |
drm/of: free the right object
There is no need to free a NULL value. Instead, free the object
that is leaking due to the iterator.
The semantic patch that finds this problem is as follows:
// <smpl>
@@
expression x,e;
identifier f;
@@
x = f(...);
if (x == NULL) {
... when any
when != x = e
* of_node_put(x);
...
}
// </smpl>
Fixes: 6529007522de ("drm: of: Add drm_of_lvds_get_dual_link_pixel_order")
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210709200717.3676376-1-Julia.Lawall@inria.fr
Diffstat (limited to 'include/drm/drm_bridge.h')
0 files changed, 0 insertions, 0 deletions