From 223fad326cfe775489879759103df3ccb0273751 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 9 Sep 2013 15:56:23 +0900 Subject: [PATCH] lib/timeval: don't forget to initialize a rwlock Commit 31ef9f5178 (timeval: Remove CACHE_TIME scheme.) removed initialization of a rwlock which is still used for some operations. This restores it. Signed-off-by: Ben Pfaff --- lib/timeval.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/timeval.c b/lib/timeval.c index 37b4353c7..326239744 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -76,6 +76,7 @@ init_clock(struct clock *c, clockid_t id) { memset(c, 0, sizeof *c); c->id = id; + ovs_rwlock_init(&c->rwlock); xclock_gettime(c->id, &c->cache); } -- 2.43.0