X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Ftable.c;h=c6614e13e5c23a3872f7f531115736e5b62c27e3;hb=eb0e14ed3f3a719b3cd5bef8cb3112e683e2a9dd;hp=cfe7b2b95976fb65de054b5ce9d1f1759935db8b;hpb=79863c64f9085114759fb1125e35f377301441fb;p=openvswitch diff --git a/datapath/table.c b/datapath/table.c index cfe7b2b9..c6614e13 100644 --- a/datapath/table.c +++ b/datapath/table.c @@ -319,7 +319,7 @@ static void free_bucket_rcu(struct rcu_head *rcu) int tbl_insert(struct tbl *table, struct tbl_node *target, u32 hash) { struct tbl_bucket **oldp = find_bucket(table, hash); - struct tbl_bucket *old = *rcu_dereference(oldp); + struct tbl_bucket *old = rcu_dereference(*oldp); unsigned int n = old ? old->n_objs : 0; struct tbl_bucket *new = bucket_alloc(n + 1); @@ -357,7 +357,7 @@ int tbl_insert(struct tbl *table, struct tbl_node *target, u32 hash) int tbl_remove(struct tbl *table, struct tbl_node *target) { struct tbl_bucket **oldp = find_bucket(table, target->hash); - struct tbl_bucket *old = *rcu_dereference(oldp); + struct tbl_bucket *old = rcu_dereference(*oldp); unsigned int n = old->n_objs; struct tbl_bucket *new;