linux/net/ipv6
David S. Miller f23d60de71 ipv6: Fix duplicate initialization of rawv6_prot.destroy
In changeset 22dd485022
("raw: Raw socket leak.") code was added so that we
flush pending frames on raw sockets to avoid leaks.

The ipv4 part was fine, but the ipv6 part was not
done correctly.  Unlike the ipv4 side, the ipv6 code
already has a .destroy method for rawv6_prot.

So now there were two assignments to this member, and
what the compiler does is use the last one, effectively
making the ipv6 parts of that changeset a NOP.

Fix this by removing the:

	.destroy	   = inet6_destroy_sock,

line, and adding an inet6_destroy_sock() call to the
end of raw6_destroy().

Noticed by Al Viro.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
2008-06-12 16:34:34 -07:00
..
netfilter netfilter: nf_conntrack_ipv6: fix inconsistent lock state in nf_ct_frag6_gather() 2008-06-04 09:58:27 -07:00
addrconf_core.c
addrconf.c [IPV6] ADDRCONF: Allow longer lifetime on 64bit archs. 2008-06-05 04:02:34 +09:00
addrlabel.c
af_inet6.c ipv6 netns: init net is used to set bindv6only for new sock 2008-06-09 15:53:30 -07:00
ah6.c
anycast.c
datagram.c ipv6: Check the hop limit setting in ancillary data. 2008-06-12 09:19:08 +09:00
esp6.c
exthdrs_core.c
exthdrs.c
fib6_rules.c
icmp.c
inet6_connection_sock.c
inet6_hashtables.c
ip6_fib.c [NETNS]: The ip6_fib_timer can work with garbage on net namespace stop. 2008-04-21 14:23:03 -07:00
ip6_flowlabel.c [IPV6] NETNS: Handle ancillary data in appropriate namespace. 2008-06-05 04:02:36 +09:00
ip6_input.c
ip6_output.c net: Allow netdevices to specify needed head/tailroom 2008-05-12 20:48:31 -07:00
ip6_tunnel.c [IP6TUNNEL]: Allow to create IP6 tunnels in net namespaces. 2008-04-16 01:24:13 -07:00
ip6mr.c ipv6: result of csum_fold() is already 16bit, no need to cast 2008-04-27 14:26:49 -07:00
ipcomp6.c net: Remove unnecessary inclusions of asm/semaphore.h 2008-04-18 22:15:50 -04:00
ipv6_sockglue.c ipv6: Fail with appropriate error code when setting not-applicable sockopt. 2008-06-12 09:19:09 +09:00
Kconfig Revert "ipv6: Fix typo in net/ipv6/Kconfig" 2008-04-27 14:26:50 -07:00
Makefile
mcast.c net: Allow netdevices to specify needed head/tailroom 2008-05-12 20:48:31 -07:00
mip6.c
ndisc.c ndisc: Add missing strategies for per-device retrans timer/reachable time settings. 2008-05-19 16:25:42 -07:00
netfilter.c
proc.c ipv6: assign PDE->data before gluing PDE into /proc tree 2008-05-02 02:46:55 -07:00
protocol.c
raw.c ipv6: Fix duplicate initialization of rawv6_prot.destroy 2008-06-12 16:34:34 -07:00
reassembly.c netns: Fix reassembly timer to use the right namespace 2008-05-02 17:02:03 -07:00
route.c ipv6 route: Fix route lifetime in netlink message. 2008-06-12 09:19:08 +09:00
sit.c net: The world is not perfect patch. 2008-05-21 17:47:54 -07:00
syncookies.c inet{6}_request_sock: Init ->opt and ->pktopts in the constructor 2008-06-10 12:39:35 -07:00
sysctl_net_ipv6.c
tcp_ipv6.c inet{6}_request_sock: Init ->opt and ->pktopts in the constructor 2008-06-10 12:39:35 -07:00
tunnel6.c [IPV6] TUNNEL6: Fix incoming packet length check for inter-protocol tunnel. 2008-06-05 04:02:32 +09:00
udp_impl.h
udp.c [IPV6]: inet_sk(sk)->cork.opt leak 2008-06-05 04:02:38 +09:00
udplite.c
xfrm6_input.c
xfrm6_mode_beet.c
xfrm6_mode_ro.c
xfrm6_mode_transport.c
xfrm6_mode_tunnel.c
xfrm6_output.c
xfrm6_policy.c
xfrm6_state.c
xfrm6_tunnel.c