diff options
| author | Cosmin Ratiu <cratiu@nvidia.com> | 2026-06-16 14:06:32 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-18 18:02:29 -0700 |
| commit | ba45106342bbdd905651cb9fcefb8c11871d4c25 (patch) | |
| tree | efd167d7676ceecc78e589864b4cba8889476e58 /include/uapi/linux | |
| parent | 8cdcf3d2caacdee7ddd363705fb4d93b0c1a0915 (diff) | |
devlink: Fix parent ref leak in devl_rate_node_create()
In the original commit the function bails out on kstrdup failure,
forgetting to decrement the refcnt of the parent.
Fix that by moving the parent refcnt setting after kstrdup.
Fixes: caba177d7f4d ("devlink: Enable creation of the devlink-rate nodes from the driver")
Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260616110633.1449432-2-cratiu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
