]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vxlan: make vxlan_sock_add and vxlan_sock_release complementary
authorJiri Benc <jbenc@redhat.com>
Thu, 24 Sep 2015 11:50:01 +0000 (13:50 +0200)
committerBrian Maly <brian.maly@oracle.com>
Wed, 12 Jun 2019 15:15:42 +0000 (11:15 -0400)
commit645b665061fb0a1244c4c7cc4a75560388fc673a
treed887d6a3a998062720905acf99dd9dae78f8e442
parentfd124bdceaacbdc4d681351b39a58133614ef7d7
vxlan: make vxlan_sock_add and vxlan_sock_release complementary

Make vxlan_sock_add both alloc the socket and attach it to vxlan_dev. Let
vxlan_sock_release accept vxlan_dev as its parameter instead of vxlan_sock.

This makes vxlan_sock_add and vxlan_sock release complementary. It reduces
code duplication in the next patch.

Orabug: 29755932

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 205f356d165033443793a97a668a203a79a8723a)

Reviewed-by: Rama Nichanamatlu <rama.nichanamatlu@oracle.com>
Signed-off-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/vxlan.c