aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorSabrina Dubroca <[email protected]>2017-06-30 15:50:00 +0200
committerDavid S. Miller <[email protected]>2017-07-03 02:04:10 -0700
commit889ce937c98f1f969137a8a2ee78627c1537d4b3 (patch)
treefd6c8a68042e13acbc1abedd16e09fb32f1fbcc9 /net/lapb/lapb_subr.c
parentc3b99db809220f0f0dd81d9c92c426b9ffba9735 (diff)
vxlan: correctly set vxlan->net when creating the device in a netns
Commit a985343ba906 ("vxlan: refactor verification and application of configuration") modified vxlan device creation, and replaced the assignment of vxlan->net to src_net with dev_net(netdev) in ->setup(). But dev_net(netdev) is not the same as src_net. At the time ->setup() is called, dev_net hasn't been set yet, so we end up creating the socket for the vxlan device in init_net. Fix this by bringing back the assignment of vxlan->net during device creation. Fixes: a985343ba906 ("vxlan: refactor verification and application of configuration") Signed-off-by: Sabrina Dubroca <[email protected]> Reviewed-by: Matthias Schiffer <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions