https://github.com/torvalds/linux
Revision fda0fd6c5b722cc48e904e0daafedca275d332af authored by Herbert Xu on 14 October 2005, 06:38:49 UTC, committed by Arnaldo Carvalho de Melo on 20 October 2005, 16:25:28 UTC
David S. Miller <davem@davemloft.net> wrote:
> One thing you can probably do for this bug is to mark data packets
> explicitly somehow, perhaps in the SKB control block DCCP already
> uses for other data.  Put some boolean in there, set it true for
> data packets.  Then change the test in dccp_transmit_skb() as
> appropriate to test the boolean flag instead of "skb_cloned(skb)".

I agree.  In fact we already have that flag, it's called skb->sk.
So here is patch to test that instead of skb_cloned().

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Ian McDonald <imcdnzl@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
1 parent ac9b9c6
History
Tip revision: fda0fd6c5b722cc48e904e0daafedca275d332af authored by Herbert Xu on 14 October 2005, 06:38:49 UTC
[DCCP]: Use skb_set_owner_w in dccp_transmit_skb when skb->sk is NULL
Tip revision: fda0fd6
File Mode Size
keys
selinux
Kconfig -rw-r--r-- 2.8 KB
Makefile -rw-r--r-- 599 bytes
capability.c -rw-r--r-- 2.8 KB
commoncap.c -rw-r--r-- 9.4 KB
dummy.c -rw-r--r-- 21.7 KB
inode.c -rw-r--r-- 9.2 KB
root_plug.c -rw-r--r-- 3.9 KB
seclvl.c -rw-r--r-- 17.3 KB
security.c -rw-r--r-- 6.0 KB

back to top