OSDN Git Service

ipv6: streamline addrconf_set_dstaddr
authorChristoph Hellwig <hch@lst.de>
Tue, 19 May 2020 13:03:18 +0000 (15:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2020 22:45:12 +0000 (15:45 -0700)
commit68ad6886dd3fb7d0b336363a90ace55b22f0dcb9
tree8753c24e3d0d6d535bc3e34e3c9161429818ec0a
parentf098846044c9edb359bf2dae4bcf0d537dda22fe
ipv6: streamline addrconf_set_dstaddr

Factor out a addrconf_set_sit_dstaddr helper for the actual work if we
found a SIT device, and only hold the rtnl lock around the device lookup
and that new helper, as there is no point in holding it over a
copy_from_user call.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c