Skip to content

Commit

Permalink
lockd: initialize sin6_scope_id in lockd_inet6addr_event()
Browse files Browse the repository at this point in the history
I noticed this was missing when I was testing with link local addresses.

Signed-off-by: Scott Mayhew <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
scottmayhew authored and J. Bruce Fields committed Jan 31, 2017
1 parent 7b19824 commit c01410f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/lockd/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ static int lockd_inet6addr_event(struct notifier_block *this,
dprintk("lockd_inet6addr_event: removed %pI6\n", &ifa->addr);
sin6.sin6_family = AF_INET6;
sin6.sin6_addr = ifa->addr;
if (ipv6_addr_type(&sin6.sin6_addr) & IPV6_ADDR_LINKLOCAL)
sin6.sin6_scope_id = ifa->idev->dev->ifindex;
svc_age_temp_xprts_now(nlmsvc_rqst->rq_server,
(struct sockaddr *)&sin6);
}
Expand Down

0 comments on commit c01410f

Please sign in to comment.