]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitebab9d21a66001c6235eb9c99cca15edcbafc311
tree8753c24e3d0d6d535bc3e34e3c9161429818ec0a
parente39124fbdf2f11320042096eec82b485e0530883
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