Jon Paul Maloy 681a55d717 tipc: move premature initilalization of stack variables
In the function tipc_rcv() we initialize a couple of stack variables
from the message header before that same header has been validated.
In rare cases when the arriving header is non-linar, the validation
function itself may linearize the buffer by calling skb_may_pull(),
while the wrongly initialized stack fields are not updated accordingly.

We fix this in this commit.

Reported-by: Matthew Wong <mwong@sonusnet.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-24 11:42:54 -05:00
..
2015-05-14 12:24:45 -04:00
2015-03-05 22:08:42 -05:00
2016-07-26 14:26:42 -07:00
2017-02-17 12:28:35 -05:00
2016-08-18 23:36:07 -07:00
2017-01-24 16:14:58 -05:00