projects
/
cascardo
/
ovs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
datapath: Replace __force type cast with rcu_dereference_raw().
[cascardo/ovs.git]
/
datapath
/
vport.c
diff --git
a/datapath/vport.c
b/datapath/vport.c
index
fd52903
..
18f3956
100644
(file)
--- a/
datapath/vport.c
+++ b/
datapath/vport.c
@@
-166,7
+166,7
@@
struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops,
*/
void ovs_vport_free(struct vport *vport)
{
- kfree(
(struct vport_portids __force *)vport->upcall_portids
);
+ kfree(
rcu_dereference_raw(vport->upcall_portids)
);
free_percpu(vport->percpu_stats);
kfree(vport);
}