]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: move linearization of buffers to generic code
authorJon Paul Maloy <jon.maloy@ericsson.com>
Thu, 19 Nov 2015 19:30:40 +0000 (14:30 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Nov 2015 19:06:09 +0000 (14:06 -0500)
commit037304419dc5fd232ca25e3c01c497c018bcd3ce
tree7a9152f5bfc20252055295f49230c7e774c1dfc5
parent609c56dc61a5ed3fc065c80df63b9bdaf67c6044
tipc: move linearization of buffers to generic code

In commit dbcb6ba2aa87f9ce ("tipc: linearize arriving NAME_DISTR
and LINK_PROTO buffers") we added linearization of NAME_DISTRIBUTOR,
LINK_PROTOCOL/RESET and LINK_PROTOCOL/ACTIVATE to the function
tipc_udp_recv(). The location of the change was selected in order
to make the commit easily appliable to 'net' and 'stable'.

We now move this linearization to where it should be done, in the
functions tipc_named_rcv() and tipc_link_proto_rcv() respectively.

Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c
net/tipc/name_distr.c
net/tipc/udp_media.c