]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/blobdiff - net/openvswitch/datapath.c
openvswitch: checking wrong variable in queue_userspace_packet()
[lisovros/linux_canprio.git] / net / openvswitch / datapath.c
index 777716bc80f7c2ad183a7309c037f4cc9c84fffa..e66341ec455c3d7c588680bd829e044b7d7752ce 100644 (file)
@@ -321,7 +321,7 @@ static int queue_userspace_packet(int dp_ifindex, struct sk_buff *skb,
                        return -ENOMEM;
 
                nskb = __vlan_put_tag(nskb, vlan_tx_tag_get(nskb));
-               if (!skb)
+               if (!nskb)
                        return -ENOMEM;
 
                nskb->vlan_tci = 0;