diff --git a/net/core/flow.c b/net/core/flow.c index b0901ee5a0025f93e32287c1acbb3ef0ded0f47a..43f7495df27a932659c714fbf7b897ab6eca2716 100644 --- a/net/core/flow.c +++ b/net/core/flow.c @@ -286,7 +286,7 @@ flow_cache_lookup(struct net *net, const struct flowi *key, u16 family, u8 dir, else fle->genid--; } else { - if (flo && !IS_ERR(flo)) + if (!IS_ERR_OR_NULL(flo)) flo->ops->delete(flo); } ret_object: