]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: initialize 'validated' field of received packets
authorJon Maloy <jon.maloy@ericsson.com>
Wed, 17 Jul 2019 21:43:44 +0000 (23:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jul 2019 22:24:38 +0000 (15:24 -0700)
commite6953ec5b1892b4a8e162dbb3904a82413e2e2ac
tree3fa4dbba90b1a0a2eea6f9fa63b3e722cd7adcbb
parentc1f036b0438b305ce975d25116d363e720df15e7
tipc: initialize 'validated' field of received packets

The tipc_msg_validate() function leaves a boolean flag 'validated' in
the validated buffer's control block, to avoid performing this action
more than once. However, at reception of new packets, the position of
this field may already have been set by lower layer protocols, so
that the packet is erroneously perceived as already validated by TIPC.

We fix this by initializing the said field to 'false' before performing
the initial validation.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/node.c