|
@@ -402,6 +402,9 @@ int batadv_batman_skb_recv(struct sk_buff *skb, struct net_device *dev,
|
|
goto err_free;
|
|
goto err_free;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /* reset control block to avoid left overs from previous users */
|
|
|
|
+ memset(skb->cb, 0, sizeof(struct batadv_skb_cb));
|
|
|
|
+
|
|
/* all receive handlers return whether they received or reused
|
|
/* all receive handlers return whether they received or reused
|
|
* the supplied skb. if not, we have to free the skb.
|
|
* the supplied skb. if not, we have to free the skb.
|
|
*/
|
|
*/
|