Skip to content

Commit 51b38f3

Browse files
committed
Merge tag 'driver-core-6.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core fix from Greg KH: "Here is a single driver core fix that resolves a reported memory leak. It's been in linux-next for 2 weeks now with no reported problems" * tag 'driver-core-6.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: drivers: core: fix device leak in __fw_devlink_relax_cycles()
2 parents 2cc699b + 78eb41f commit 51b38f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/base/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,6 +2079,7 @@ static bool __fw_devlink_relax_cycles(struct fwnode_handle *con_handle,
20792079
out:
20802080
sup_handle->flags &= ~FWNODE_FLAG_VISITED;
20812081
put_device(sup_dev);
2082+
put_device(con_dev);
20822083
put_device(par_dev);
20832084
return ret;
20842085
}

0 commit comments

Comments
 (0)