diff options
author | Patrick McHardy <kaber@trash.net> | 2007-04-09 20:46:17 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 07:28:37 +0200 |
commit | 557922584d9c5b6b990bcfb2fec3134f0e73a05d (patch) | |
tree | f7944ace44efa532fbee23db0709760bfb70ec98 /kernel/irq/handle.c | |
parent | [SK_BUFF]: Fix missing offset adjustment in pskb_expand_head (diff) | |
download | linux-557922584d9c5b6b990bcfb2fec3134f0e73a05d.tar.xz linux-557922584d9c5b6b990bcfb2fec3134f0e73a05d.zip |
[XFRM]: esp: fix skb_tail_pointer conversion bug
Fix incorrect switch of "trailer" skb by "skb" during skb_tail_pointer
conversion:
- *(u8*)(trailer->tail - 1) = top_iph->protocol;
+ *(skb_tail_pointer(skb) - 1) = top_iph->protocol;
- *(u8 *)(trailer->tail - 1) = *skb_network_header(skb);
+ *(skb_tail_pointer(skb) - 1) = *skb_network_header(skb);
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/irq/handle.c')
0 files changed, 0 insertions, 0 deletions