2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00
linux-next/net/dccp
Herbert Xu ffa29347df [DCCP]: Make dccp_write_xmit always free the packet
icmp_send doesn't use skb->sk at all so even if skb->sk has already
been freed it can't cause crash there (it would've crashed somewhere
else first, e.g., ip_queue_xmit).

I found a double-free on an skb that could explain this though.
dccp_sendmsg and dccp_write_xmit are a little confused as to what
should free the packet when something goes wrong.  Sometimes they
both go for the ball and end up in each other's way.

This patch makes dccp_write_xmit always free the packet no matter
what.  This makes sense since dccp_transmit_skb which in turn comes
from the fact that ip_queue_xmit always frees the packet.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
2005-10-20 14:44:29 -02:00
..
ccids [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
ackvec.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
ackvec.h [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
ccid.c [DCCP]: Initial implementation 2005-08-29 15:49:46 -07:00
ccid.h [CCID]: Check if ccid is NULL in the hc_[tr]x_exit functions 2005-10-10 21:24:20 -07:00
dccp.h [DCCP]: Move the ack vector code to net/dccp/ackvec.[ch] 2005-09-18 00:17:51 -07:00
diag.c [DCCP]: Introduce dccp_get_info 2005-08-29 16:05:07 -07:00
input.c [DCCP]: Transition from PARTOPEN to OPEN when receiving DATA packets 2005-10-10 21:25:00 -07:00
ipv4.c [INET]: speedup inet (tcp/dccp) lookups 2005-10-03 14:13:38 -07:00
Kconfig [DCCP]: Make the Debug Menu available when DCCP is statically linked too 2005-08-29 16:11:27 -07:00
Makefile [DCCP]: Move the ack vector code to net/dccp/ackvec.[ch] 2005-09-18 00:17:51 -07:00
minisocks.c [DCCP]: Move the ack vector code to net/dccp/ackvec.[ch] 2005-09-18 00:17:51 -07:00
options.c [DCCP]: Don't use necessarily the same CCID for tx and rx 2005-09-18 00:18:52 -07:00
output.c [DCCP]: Make dccp_write_xmit always free the packet 2005-10-20 14:44:29 -02:00
proto.c [DCCP]: Make dccp_write_xmit always free the packet 2005-10-20 14:44:29 -02:00
timer.c [DCCP]: Fix the ACK and SEQ window variables settings 2005-08-29 16:03:42 -07:00