diff options
| author | Biren Pandya <birenpandya@gmail.com> | 2026-06-19 13:41:30 +0530 |
|---|---|---|
| committer | Sakari Ailus <sakari.ailus@linux.intel.com> | 2026-07-15 11:13:55 +0300 |
| commit | a6e86efd7f85e519bf48417f41923f8bd51f1597 (patch) | |
| tree | b1234bb1658e87e6360256364ed83815deb01f38 /drivers/media/platform | |
| parent | 04c053379c3a33460b581953c4f5b36de39439ac (diff) | |
| download | linux-next-a6e86efd7f85e519bf48417f41923f8bd51f1597.tar.gz linux-next-a6e86efd7f85e519bf48417f41923f8bd51f1597.zip | |
media: v4l2-fwnode: Fix fwnode leak in v4l2_fwnode_parse_link
In v4l2_fwnode_parse_link(), the remote endpoint fwnode reference is
acquired using fwnode_graph_get_remote_endpoint(). This reference is
properly released in the error paths, but it is leaked on the success
path.
Add the missing fwnode_handle_put() before returning 0 to prevent the
reference leak.
Signed-off-by: Biren Pandya <birenpandya@gmail.com>
Fixes: ca50c197bd96 ("[media] v4l: fwnode: Support generic fwnode for parsing standardised properties")
Cc: stable@vger.kernel.org
[Sakari Ailus: Fix subject prefix and coding style a little.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Diffstat (limited to 'drivers/media/platform')
0 files changed, 0 insertions, 0 deletions
