]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv6/ip6_flowlabel.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier...
[karo-tx-linux.git] / net / ipv6 / ip6_flowlabel.c
index 13654686aeabae2eb832467c8f22d4ad41ea9d2f..f3caf1b8d572770754b148848a30dbef38ff78ca 100644 (file)
@@ -342,7 +342,7 @@ fl_create(struct net *net, struct in6_flowlabel_req *freq, char __user *optval,
 
        if (olen > 0) {
                struct msghdr msg;
-               struct flowi flowi;
+               struct flowi6 flowi6;
                int junk;
 
                err = -ENOMEM;
@@ -358,9 +358,9 @@ fl_create(struct net *net, struct in6_flowlabel_req *freq, char __user *optval,
 
                msg.msg_controllen = olen;
                msg.msg_control = (void*)(fl->opt+1);
-               flowi.oif = 0;
+               memset(&flowi6, 0, sizeof(flowi6));
 
-               err = datagram_send_ctl(net, &msg, &flowi, fl->opt, &junk,
+               err = datagram_send_ctl(net, &msg, &flowi6, fl->opt, &junk,
                                        &junk, &junk);
                if (err)
                        goto done;