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>
Showing
- include/linux/ipv6.h 3 additions, 1 deletioninclude/linux/ipv6.h
- include/net/inet_sock.h 10 additions, 0 deletionsinclude/net/inet_sock.h
- net/dccp/ipv4.c 1 addition, 2 deletionsnet/dccp/ipv4.c
- net/dccp/ipv6.c 0 additions, 1 deletionnet/dccp/ipv6.c
- net/ipv4/syncookies.c 1 addition, 2 deletionsnet/ipv4/syncookies.c
- net/ipv4/tcp_ipv4.c 1 addition, 1 deletionnet/ipv4/tcp_ipv4.c
- net/ipv6/syncookies.c 0 additions, 1 deletionnet/ipv6/syncookies.c
- net/ipv6/tcp_ipv6.c 0 additions, 1 deletionnet/ipv6/tcp_ipv6.c
Please register or sign in to comment