Commit 5e221c5c authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[NET]: Missing refcount bump in flow cache.

parent 61c05fcd
...@@ -199,6 +199,8 @@ void *flow_cache_lookup(struct flowi *key, u16 family, u8 dir, ...@@ -199,6 +199,8 @@ void *flow_cache_lookup(struct flowi *key, u16 family, u8 dir,
fle->genid = atomic_read(&flow_cache_genid); fle->genid = atomic_read(&flow_cache_genid);
fle->object = obj; fle->object = obj;
fle->object_ref = obj_ref; fle->object_ref = obj_ref;
if (obj)
atomic_inc(fle->object_ref);
flow_count(cpu)++; flow_count(cpu)++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment