stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* request for 4.14-stable: 5b9e886a4af97574ca3ce1147f35545da0e7afc7
@ 2018-07-18 19:57 Sudip Mukherjee
  2018-07-19 16:34 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Sudip Mukherjee @ 2018-07-18 19:57 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: stable, Peter Zijlstra, Thomas Gleixner, Diego Viola,
	Rafael J. Wysocki, len.brown, rjw, rui.zhang

[-- Attachment #1: Type: text/plain, Size: 89 bytes --]

Hi Greg,

This was missing in 4.14-stable. Please apply to your queue.

--
Regards
Sudip

[-- Attachment #2: 0004-clocksource-Initialize-cs-wd_list.patch --]
[-- Type: text/x-diff, Size: 1488 bytes --]

>From 5f63649f0084b72d76d95ffafde45ad06bd84b49 Mon Sep 17 00:00:00 2001
From: Peter Zijlstra <peterz@infradead.org>
Date: Mon, 30 Apr 2018 12:00:11 +0200
Subject: [PATCH] clocksource: Initialize cs->wd_list

commit 5b9e886a4af97574ca3ce1147f35545da0e7afc7 upstream

A number of places relies on list_empty(&cs->wd_list), however the
list_head does not get initialized. Do so upon registration, such that
thereafter it is possible to rely on list_empty() correctly reflecting
the list membership status.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Diego Viola <diego.viola@gmail.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: stable@vger.kernel.org
Cc: len.brown@intel.com
Cc: rjw@rjwysocki.net
Cc: rui.zhang@intel.com
Link: https://lkml.kernel.org/r/20180430100344.472662715@infradead.org
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
---
 kernel/time/clocksource.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 03918a19cf2d..3b71d859ee38 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -322,6 +322,8 @@ static void clocksource_enqueue_watchdog(struct clocksource *cs)
 {
 	unsigned long flags;
 
+	INIT_LIST_HEAD(&cs->wd_list);
+
 	spin_lock_irqsave(&watchdog_lock, flags);
 	if (cs->flags & CLOCK_SOURCE_MUST_VERIFY) {
 		/* cs is a clocksource to be watched. */
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: request for 4.14-stable: 5b9e886a4af97574ca3ce1147f35545da0e7afc7
  2018-07-18 19:57 request for 4.14-stable: 5b9e886a4af97574ca3ce1147f35545da0e7afc7 Sudip Mukherjee
@ 2018-07-19 16:34 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2018-07-19 16:34 UTC (permalink / raw)
  To: Sudip Mukherjee
  Cc: stable, Peter Zijlstra, Thomas Gleixner, Diego Viola,
	Rafael J. Wysocki, len.brown, rjw, rui.zhang

On Wed, Jul 18, 2018 at 08:57:06PM +0100, Sudip Mukherjee wrote:
> Hi Greg,
> 
> This was missing in 4.14-stable. Please apply to your queue.

Now applied, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-19 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-18 19:57 request for 4.14-stable: 5b9e886a4af97574ca3ce1147f35545da0e7afc7 Sudip Mukherjee
2018-07-19 16:34 ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).