openvswitch: add nf_ct_is_confirmed check before assigning the helper
[linux-2.6-microblaze.git] / net / openvswitch / conntrack.c
index cb255d8..c7b1023 100644 (file)
@@ -1015,7 +1015,8 @@ static int __ovs_ct_lookup(struct net *net, struct sw_flow_key *key,
                 * connections which we will commit, we may need to attach
                 * the helper here.
                 */
-               if (info->commit && info->helper && !nfct_help(ct)) {
+               if (!nf_ct_is_confirmed(ct) && info->commit &&
+                   info->helper && !nfct_help(ct)) {
                        int err = __nf_ct_try_assign_helper(ct, info->ct,
                                                            GFP_ATOMIC);
                        if (err)