Bug Fix: cache_include: Fix object ref release after successful object update
The current code does a rtnl_link_put on new object instead of old object. This patch fixes it. None of the caches have support for object update, so this should not have affected anyone yet. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
parent
29b71371e7
commit
20a051237c
1 changed files with 1 additions and 1 deletions
|
@ -736,7 +736,7 @@ static int cache_include(struct nl_cache *cache, struct nl_object *obj,
|
|||
*/
|
||||
if (nl_object_update(old, obj) == 0) {
|
||||
cb(cache, old, NL_ACT_CHANGE, data);
|
||||
nl_object_put(obj);
|
||||
nl_object_put(old);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue