Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752712AbdCEBP2 (ORCPT ); Sat, 4 Mar 2017 20:15:28 -0500 Received: from a2nlsmtp01-05.prod.iad2.secureserver.net ([198.71.225.49]:49200 "EHLO a2nlsmtp01-05.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752469AbdCEBPF (ORCPT ); Sat, 4 Mar 2017 20:15:05 -0500 x-originating-ip: 107.180.71.197 From: kys@exchange.microsoft.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com Cc: Dexuan Cui , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger Subject: [PATCH 4/4] Drivers: hv: util: don't forget to init host_ts.lock Date: Sat, 4 Mar 2017 18:14:00 -0700 Message-Id: <1488676440-4105-4-git-send-email-kys@exchange.microsoft.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1488676406-4021-1-git-send-email-kys@exchange.microsoft.com> References: <1488676406-4021-1-git-send-email-kys@exchange.microsoft.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfOZhZ7w6nlGpv7CI1oSf96AGPgQqqgVyVmdPDZy934MD/M3LndSE3bhp051J2wyvSZBVKFw8uw9r5AhzbuOAnHRgx4rWs6rCWEp5zug1HuzZlZLJxqRj DBIj6+nHhDXAaJAcJnH8q5/UAzASC+mv9RpH6zzSqIKqQm93JlzFVhoIzw+y3K35Rk31eeiFJPQD4owaycnzubZoE4ugEnSnlj5lASgeE7l/LcbUbYQpqZGN k4tyPQctYBMpPJ2SOjaMS3CI+bAo6mKixNPQ+xZdh/yODKXgFQWFSsI3OsNrHXrdEF7qMC2ngBOm3n6hDVvUvN3moC9x3qJntWUKCfGnOAx47NrE3tRY4izp URWj8yvD1xtBoL/Jits5LGQ7gcgYHmyujqMdHPw50VH4jiNqIDDzleCrpMLx5phmYIE9uixq9N8YgD916/ovwUsFhRlcYdiIiuCxuFVVvydVYYpl1aO9Ou/u fSHZEtrA7DOZyngJUjgN5odhIwkW9mkitBhV7GoGpvzeJfCrzE0P3Suko6kVy6MJ/LX/seNzA6MDdpuHNrlpTLiLbxUxPe9RVD9IkdyMJ2pLxEkOnzN/Ynpy 72DrcHDIhIGBX0aD06YNv0Yy Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 888 Lines: 31 From: Dexuan Cui 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 Cc: Vitaly Kuznetsov Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Signed-off-by: K. Y. Srinivasan --- 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