Commit 076999e4 authored by Mark Gray's avatar Mark Gray Committed by David S. Miller

openvswitch: fix sparse warning incorrect type

fix incorrect type in argument 1 (different address spaces)

../net/openvswitch/datapath.c:169:17: warning: incorrect type in argument 1 (different address spaces)
../net/openvswitch/datapath.c:169:17:    expected void const *
../net/openvswitch/datapath.c:169:17:    got struct dp_nlsk_pids [noderef] __rcu *upcall_portids

Found at: https://patchwork.kernel.org/project/netdevbpf/patch/20210630095350.817785-1-mark.d.gray@redhat.com/#24285159Signed-off-by: default avatarMark Gray <mark.d.gray@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 784dcfa5
...@@ -168,7 +168,7 @@ static void destroy_dp_rcu(struct rcu_head *rcu) ...@@ -168,7 +168,7 @@ static void destroy_dp_rcu(struct rcu_head *rcu)
free_percpu(dp->stats_percpu); free_percpu(dp->stats_percpu);
kfree(dp->ports); kfree(dp->ports);
ovs_meters_exit(dp); ovs_meters_exit(dp);
kfree(dp->upcall_portids); kfree(rcu_dereference_raw(dp->upcall_portids));
kfree(dp); kfree(dp);
} }
......
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