On Donnerstag, 6. Oktober 2016 08:41:40 CET Linus Lüssing wrote:
void *ctx = batadv_tvlv_ogm_pack_ctx(orig_node);
const struct ethhdr *ethhdr = eth_hdr(skb);
unsigned int tvlv_offset = sizeof(*ogm2);
Haven't checked the complete code yet but isn't an increase of the reference counter for orig_node missing here? Things like batadv_gw_tvlv_ogm_handler would then have to take care of dropping the reference.
Kind regards, Sven