Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a16dfc8 authored by Dexuan Cui's avatar Dexuan Cui Committed by Greg Kroah-Hartman
Browse files

Drivers: hv: util: don't forget to init host_ts.lock



Without the patch, I always get a "BUG: spinlock bad magic" warning.

Fixes: 3716a49a ("hv_utils: implement Hyper-V PTP source")

Signed-off-by: default avatarDexuan 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: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e9c18ae6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);

	/*