/* It checks skb, netlink header and msg sizes, and calls callback helper.  */
static void cn_rx_skb(struct sk_buff *__skb)
/* It checks skb, netlink header and msg sizes, and calls callback helper.  */
static void cn_rx_skb(struct sk_buff *__skb)
{
	struct nlmsghdr *nlh;
	int err;
	struct sk_buff *skb;
	skb = skb_get(__skb);
	if (skb->len >= NLMSG_SPACE(0)) {
		nlh = nlmsg_hdr(skb);
		if (nlh->nlmsg_len < sizeof(struct cn_msg) ||
		    skb->len < nlh->nlmsg_len ||
		    nlh->nlmsg_len > CONNECTOR_MAX_MSG_SIZE) {
			kfree_skb(skb);
			return;
		}
		err = cn_call_callback(skb);
		if (err < 0)
			kfree_skb(skb);
	}
}