mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 16:17:38 +00:00
zebra: Fix paths that have already de-refed ctx
There is no path in some functions where the ctx has not already been de-refed. As such no need to test for it's existence. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
b31a1797c6
commit
d7c9666e06
@ -3799,8 +3799,7 @@ tc_qdisc_update_internal(enum dplane_op_e op,
|
|||||||
} else {
|
} else {
|
||||||
atomic_fetch_add_explicit(&zdplane_info.dg_tcs_errors, 1,
|
atomic_fetch_add_explicit(&zdplane_info.dg_tcs_errors, 1,
|
||||||
memory_order_relaxed);
|
memory_order_relaxed);
|
||||||
if (ctx)
|
dplane_ctx_free(&ctx);
|
||||||
dplane_ctx_free(&ctx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -3830,8 +3829,7 @@ tc_class_update_internal(enum dplane_op_e op, struct zebra_tc_class *class)
|
|||||||
} else {
|
} else {
|
||||||
atomic_fetch_add_explicit(&zdplane_info.dg_tcs_errors, 1,
|
atomic_fetch_add_explicit(&zdplane_info.dg_tcs_errors, 1,
|
||||||
memory_order_relaxed);
|
memory_order_relaxed);
|
||||||
if (ctx)
|
dplane_ctx_free(&ctx);
|
||||||
dplane_ctx_free(&ctx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -3861,8 +3859,7 @@ tc_filter_update_internal(enum dplane_op_e op, struct zebra_tc_filter *filter)
|
|||||||
} else {
|
} else {
|
||||||
atomic_fetch_add_explicit(&zdplane_info.dg_tcs_errors, 1,
|
atomic_fetch_add_explicit(&zdplane_info.dg_tcs_errors, 1,
|
||||||
memory_order_relaxed);
|
memory_order_relaxed);
|
||||||
if (ctx)
|
dplane_ctx_free(&ctx);
|
||||||
dplane_ctx_free(&ctx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -4230,8 +4227,7 @@ done:
|
|||||||
else {
|
else {
|
||||||
atomic_fetch_add_explicit(&zdplane_info.dg_lsp_errors, 1,
|
atomic_fetch_add_explicit(&zdplane_info.dg_lsp_errors, 1,
|
||||||
memory_order_relaxed);
|
memory_order_relaxed);
|
||||||
if (ctx)
|
dplane_ctx_free(&ctx);
|
||||||
dplane_ctx_free(&ctx);
|
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user