[SRU][Xenial][PATCH 1/1] UBUNTU: SAUCE: kaiser: fix perf crashes - fix to original commit

Joseph Salisbury joseph.salisbury at canonical.com
Tue Jan 9 16:19:45 UTC 2018


BugLink: http://bugs.launchpad.net/bugs/1741934

There was a back port of upstream 4.4 stable commit 20cbe9a3aa2e341824da57ce0ac6d52cbffaa570
to Xenial which failed remove a kfree() from release_ds_buffer().    

This commit does only that.  It removes this extra kfree().  This left over 
kfree was causing a kernel trace on many systems as reported in the bug.

This commit removes the kfree() like it should have been in the original commit.  


Signed-off-by: Joseph Salisbury <joseph.salisbury at canonical.com>
---
 arch/x86/events/intel/ds.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/events/intel/ds.c b/arch/x86/events/intel/ds.c
index c236f3d..6eca9fb 100644
--- a/arch/x86/events/intel/ds.c
+++ b/arch/x86/events/intel/ds.c
@@ -415,7 +415,6 @@ static void release_ds_buffer(int cpu)
 		return;
 
 	per_cpu(cpu_hw_events, cpu).ds = NULL;
-	kfree(ds);
 }
 
 void release_ds_buffers(void)
-- 
2.7.4





More information about the kernel-team mailing list