Skip to contentSkip to conversation

ipv6: Fix nexthop reference count in ip6_route_info_create()

PATCH Markus Elfring 1 participant 1 message Jul 25, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

…

Quoted 2 lines

When ip6_route_info_create() returns, local variable "nh" becomes invalid, so the refcount should be decreased to keep refcount balanced.

Can it be helpful to use the term “reference count” in consistent ways?

Quoted 1 line

Fix this issue

How do you think about to replace this wording by the tag “Fixes”?

Quoted 2 lines

by pulling up the error source routing handling when
nexthops can not be used with source routing.

Does the movement of an if statement according to the check of the data structure member “rt->fib6_src.plen” in an if branch really help here?

Regards,
Markus