The mainline fix uses Mark's code verbatim, except a few lines earlier w/in
the functions.
I'm just removing Mark's (now duplicate) code from source.
if (ub->qlen > 1)
ub->lastnlh->nlmsg_type = NLMSG_DONE;
if (ub->qlen > 1)
ub->lastnlh->nlmsg_type = NLMSG_DONE;
- if (!ub->skb)
- return;
-
NETLINK_CB(ub->skb).dst_group = nlgroup + 1;
netlink_broadcast(ebtulognl, ub->skb, 0, nlgroup + 1, GFP_ATOMIC);
NETLINK_CB(ub->skb).dst_group = nlgroup + 1;
netlink_broadcast(ebtulognl, ub->skb, 0, nlgroup + 1, GFP_ATOMIC);
if (ub->qlen > 1)
ub->lastnlh->nlmsg_type = NLMSG_DONE;
if (ub->qlen > 1)
ub->lastnlh->nlmsg_type = NLMSG_DONE;
- if (!ub->skb) {
- DEBUGP("ipt_ULOG: ulog_send: nothing to send\n");
- return;
- }
-
NETLINK_CB(ub->skb).dst_group = nlgroupnum + 1;
DEBUGP("ipt_ULOG: throwing %d packets to netlink group %u\n",
ub->qlen, nlgroupnum + 1);
NETLINK_CB(ub->skb).dst_group = nlgroupnum + 1;
DEBUGP("ipt_ULOG: throwing %d packets to netlink group %u\n",
ub->qlen, nlgroupnum + 1);
if (inst->qlen > 1)
inst->lastnlh->nlmsg_type = NLMSG_DONE;
if (inst->qlen > 1)
inst->lastnlh->nlmsg_type = NLMSG_DONE;
- if (!inst->skb)
- return 0;
-
status = nfnetlink_unicast(inst->skb, inst->peer_pid, MSG_DONTWAIT);
if (status < 0) {
UDEBUG("netlink_unicast() failed\n");
status = nfnetlink_unicast(inst->skb, inst->peer_pid, MSG_DONTWAIT);
if (status < 0) {
UDEBUG("netlink_unicast() failed\n");