diff options
author | Mark Gray <mark.d.gray@redhat.com> | 2021-07-23 17:24:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-27 13:48:43 +0300 |
commit | 076999e460279cec45c4653513a4f3121fe236d7 (patch) | |
tree | 5b957e62aff0837743fa3314e8d93d517c12fd79 /net/openvswitch | |
parent | 784dcfa56e0453bb197601ba0b8196f6f892ebcb (diff) | |
download | linux-076999e460279cec45c4653513a4f3121fe236d7.tar.xz |
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/#24285159
Signed-off-by: Mark Gray <mark.d.gray@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
-rw-r--r-- | net/openvswitch/datapath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index e6f0ae5618dd..67ad08320886 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c @@ -168,7 +168,7 @@ static void destroy_dp_rcu(struct rcu_head *rcu) free_percpu(dp->stats_percpu); kfree(dp->ports); ovs_meters_exit(dp); - kfree(dp->upcall_portids); + kfree(rcu_dereference_raw(dp->upcall_portids)); kfree(dp); } |