From: YAMAMOTO Takashi Date: Mon, 9 Sep 2013 06:56:23 +0000 (+0900) Subject: lib/timeval: don't forget to initialize a rwlock X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=223fad326cfe775489879759103df3ccb0273751;p=sliver-openvswitch.git 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 --- 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); }