]> err.no Git - linux-2.6/commit
inet{6}_request_sock: Init ->opt and ->pktopts in the constructor
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 Jun 2008 19:39:35 +0000 (12:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Jun 2008 19:39:35 +0000 (12:39 -0700)
commitce4a7d0d48bbaed78ccbb0bafb9229651a40303a
treedf8770ef69c71a0d6935154add3ff3f4bb8dbc3a
parent45d465bc237ab1e1ebb4c65b9b318830dafb7509
inet{6}_request_sock: Init ->opt and ->pktopts in the constructor

Wei Yongjun noticed that we may call reqsk_free on request sock objects where
the opt fields may not be initialized, fix it by introducing inet_reqsk_alloc
where we initialize ->opt to NULL and set ->pktopts to NULL in
inet6_reqsk_alloc.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h
include/net/inet_sock.h
net/dccp/ipv4.c
net/dccp/ipv6.c
net/ipv4/syncookies.c
net/ipv4/tcp_ipv4.c
net/ipv6/syncookies.c
net/ipv6/tcp_ipv6.c