]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: mark head of reassembly buffer as non-linear
authorJon Paul Maloy <jon.maloy@ericsson.com>
Wed, 14 May 2014 09:39:11 +0000 (05:39 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 May 2014 19:19:48 +0000 (15:19 -0400)
commitbe3ec9cb65e53322e99cee5439ea2498c86fd56c
treeb4f5a56a3c2e8eecfec5465491bb6f79f596ac77
parent6f4f858f5838bc5ad8c7d07df78825aaa7925e91
tipc: mark head of reassembly buffer as non-linear

The message reassembly function does not update the 'len' and 'data_len'
fields of the head skbuff correctly when fragments are chained to it.
This may sometimes lead to obsure errors, such as fragment reordering
when we receive fragments which are cloned buffers.

This commit fixes this, by ensuring that the two fields are updated
correctly.

Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c