diff options
Diffstat (limited to 'net/batman-adv/routing.c')
-rw-r--r-- | net/batman-adv/routing.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c index 840e2c64a301..015471d801b4 100644 --- a/net/batman-adv/routing.c +++ b/net/batman-adv/routing.c | |||
@@ -617,6 +617,8 @@ int recv_tt_query(struct sk_buff *skb, struct hard_iface *recv_if) | |||
617 | * changes */ | 617 | * changes */ |
618 | if (skb_linearize(skb) < 0) | 618 | if (skb_linearize(skb) < 0) |
619 | goto out; | 619 | goto out; |
620 | /* skb_linearize() possibly changed skb->data */ | ||
621 | tt_query = (struct tt_query_packet *)skb->data; | ||
620 | 622 | ||
621 | tt_len = tt_query->tt_data * sizeof(struct tt_change); | 623 | tt_len = tt_query->tt_data * sizeof(struct tt_change); |
622 | 624 | ||