> - return nfnetlink_unicast(skb2, net, NETLINK_CB(skb).portid); > + tablename = nla_strdup(nla[NFTA_RULE_TABLE], GFP_ATOMIC); > + buf = kasprintf(GFP_ATOMIC, "%s:%u", tablename, nft_net->base_seq); You can use %.*s:%u", nla_len(nla[NFTA_RULE_TABLE]), nla_data(nla[NFTA_RULE_TABLE) ... here to avoid the extra strdup.