diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-07-05 09:28:50 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-07-12 17:56:29 -0400 |
| commit | 0cbd5855a97197f62b04a5b90ac79d78725511cb (patch) | |
| tree | 545b3f60c52bf3ca8fa45b8b305736d1b30278ce /ospf6d/ospf6_gr.c | |
| parent | c362e274b22eb411793ab93a50a9ed6e7bc67889 (diff) | |
ospf6d: Convert ospf6_lsa_unlock to a better api
Make the ospf6_lsa_unlock take the same parameters
that the ospf_lsa_unlock does to make it consistent
and to also ensure that no-one can make the mistake
of getting the pointer cleared up.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospf6d/ospf6_gr.c')
| -rw-r--r-- | ospf6d/ospf6_gr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_gr.c b/ospf6d/ospf6_gr.c index f39da91415..69230e572b 100644 --- a/ospf6d/ospf6_gr.c +++ b/ospf6d/ospf6_gr.c @@ -294,7 +294,7 @@ static int ospf6_router_lsa_contains_adj(struct ospf6_area *area, continue; if (lsdesc->neighbor_router_id == neighbor_router_id) { - ospf6_lsa_unlock(lsa); + ospf6_lsa_unlock(&lsa); return RTR_LSA_ADJ_FOUND; } } @@ -514,7 +514,7 @@ static bool ospf6_gr_check_adjs(struct ospf6 *ospf6) lsa_self)) { found = true; if (!ospf6_gr_check_adjs_lsa(area, lsa_self)) { - ospf6_lsa_unlock(lsa_self); + ospf6_lsa_unlock(&lsa_self); return false; } } |
