Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1592669
| From | kys@exchange.microsoft.com |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 4/4] Drivers: hv: util: don't forget to init host_ts.lock |
| Date | 2017-03-05 02:20 +0100 |
| Message-ID | <tht06-Th-3@gated-at.bofh.it> (permalink) |
| References | <tht06-Th-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Dexuan Cui <decui@microsoft.com>
Without the patch, I always get a "BUG: spinlock bad magic" warning.
Fixes: 3716a49a81ba ("hv_utils: implement Hyper-V PTP source")
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
---
drivers/hv/hv_util.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
index 3042eaa..186b100 100644
--- a/drivers/hv/hv_util.c
+++ b/drivers/hv/hv_util.c
@@ -590,6 +590,8 @@ static int hv_timesync_init(struct hv_util_service *srv)
if (!hyperv_cs)
return -ENODEV;
+ spin_lock_init(&host_ts.lock);
+
INIT_WORK(&wrk.work, hv_set_host_time);
/*
--
1.7.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 4/4] Drivers: hv: util: don't forget to init host_ts.lock kys@exchange.microsoft.com - 2017-03-05 02:20 +0100
csiph-web