mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 03:54:02 +00:00
openvswitch: Use kmem_cache_free() instead of kfree()
memory allocated by kmem_cache_alloc() should be freed using
kmem_cache_free(), not kfree().
Fixes: e298e50570
('openvswitch: Per cpu flow stats.')
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
54b553e2c1
commit
ece37c87ab
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ struct sw_flow *ovs_flow_alloc(bool percpu_stats)
|
||||||
}
|
}
|
||||||
return flow;
|
return flow;
|
||||||
err:
|
err:
|
||||||
kfree(flow);
|
kmem_cache_free(flow_cache, flow);
|
||||||
return ERR_PTR(-ENOMEM);
|
return ERR_PTR(-ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue