openvswitch: Call genlmsg_end in queue_userspace_packet
authorRich Lane <rlane@bigswitch.com>
Fri, 15 Feb 2013 19:07:43 +0000 (11:07 -0800)
committerJesse Gross <jesse@nicira.com>
Sat, 23 Feb 2013 01:02:11 +0000 (17:02 -0800)
Without genlmsg_end the upcall message ends (according to nlmsg_len)
after the struct ovs_header.

Signed-off-by: Rich Lane <rlane@bigswitch.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/datapath.c

index a2cd3e6d03a20c6bf30b96d8b06412821c43a489..cae1062f94ba28111e8b17ec2356e4dd0839efda 100644 (file)
@@ -395,6 +395,7 @@ static int queue_userspace_packet(struct net *net, int dp_ifindex,
 
        skb_copy_and_csum_dev(skb, nla_data(nla));
 
+       genlmsg_end(user_skb, upcall);
        err = genlmsg_unicast(net, user_skb, upcall_info->portid);
 
 out:
This page took 0.030093 seconds and 5 git commands to generate.