In the Linux kernel, the following vulnerability has been resolved: media: v4l2-core: Fix a potential resource leak in v4l2fwnodeparselink() If fwnodegraphgetremoteendpoint() fails, 'fwnode' is known to be NULL, so fwnodehandleput() is a no-op. Release the reference taken from a previous fwnodegraphgetportparent() call instead. Also handle fwnodegraphgetport_parent() failures. In order to fix these issues, add an error handling path to the function and the needed gotos.