This patch fixes two null pointer dereferences in flow code detected by
coverity scan.
Coverity issue: 345815, 345816
Fixes: 94f00800d78b ("net/ice: fix VXLAN/NVGRE flow matching")
Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
                                           "Invalid VXLAN item");
                                return 0;
                        }
-                       if (vxlan_mask->vni[0] == UINT8_MAX &&
+                       if (vxlan_mask && vxlan_mask->vni[0] == UINT8_MAX &&
                                        vxlan_mask->vni[1] == UINT8_MAX &&
                                        vxlan_mask->vni[2] == UINT8_MAX)
                                input_set |= ICE_INSET_TUN_ID;
                                           "Invalid NVGRE item");
                                return 0;
                        }
-                       if (nvgre_mask->tni[0] == UINT8_MAX &&
+                       if (nvgre_mask && nvgre_mask->tni[0] == UINT8_MAX &&
                                        nvgre_mask->tni[1] == UINT8_MAX &&
                                        nvgre_mask->tni[2] == UINT8_MAX)
                                input_set |= ICE_INSET_TUN_ID;