stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "arc: fix use of uninitialized arc_pmu" has been added to the 4.1-stable tree
@ 2015-07-17  1:20 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2015-07-17  1:20 UTC (permalink / raw)
  To: jcmvbkbc, gregkh, vgupta; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    arc: fix use of uninitialized arc_pmu

to the 4.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arc-fix-use-of-uninitialized-arc_pmu.patch
and it can be found in the queue-4.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From 7002f77541f877a5590615ceb3da32b114f14b62 Mon Sep 17 00:00:00 2001
From: Max Filippov <jcmvbkbc@gmail.com>
Date: Sun, 14 Jun 2015 02:09:06 +0300
Subject: arc: fix use of uninitialized arc_pmu

From: Max Filippov <jcmvbkbc@gmail.com>

commit 7002f77541f877a5590615ceb3da32b114f14b62 upstream.

static arc_pmu in the arch/arc/kernel/perf_event.c is not initialized as
it's shadowed by a local variable of the same name in the
arc_pmu_device_probe.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Fixes: 03c94fcf954d "ARC: perf: make @arc_pmu static global"
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 arch/arc/kernel/perf_event.c |    1 -
 1 file changed, 1 deletion(-)

--- a/arch/arc/kernel/perf_event.c
+++ b/arch/arc/kernel/perf_event.c
@@ -266,7 +266,6 @@ static int arc_pmu_add(struct perf_event
 
 static int arc_pmu_device_probe(struct platform_device *pdev)
 {
-	struct arc_pmu *arc_pmu;
 	struct arc_reg_pct_build pct_bcr;
 	struct arc_reg_cc_build cc_bcr;
 	int i, j, ret;


Patches currently in stable-queue which might be from jcmvbkbc@gmail.com are

queue-4.1/arc-fix-use-of-uninitialized-arc_pmu.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-17  1:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-17  1:20 Patch "arc: fix use of uninitialized arc_pmu" has been added to the 4.1-stable tree gregkh

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).