]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/intel_rdt: Fix memory leak on mount failure
authorVikas Shivappa <vikas.shivappa@linux.intel.com>
Mon, 26 Jun 2017 18:55:49 +0000 (11:55 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 30 Jun 2017 19:20:00 +0000 (21:20 +0200)
commit79298acc4ba097e9ab78644e3e38902d73547c92
treea8e0f66c760d12d29e5ed4e920c1e738bf96bc9c
parent8eabf42ae5237e6b699aeac687b5b629e3537c8d
x86/intel_rdt: Fix memory leak on mount failure

If mount fails, the kn_info directory is not freed causing memory leak.

Add the missing error handling path.

Fixes: 4e978d06dedb ("x86/intel_rdt: Add "info" files to resctrl file system")
Signed-off-by: Vikas Shivappa <vikas.shivappa@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: ravi.v.shankar@intel.com
Cc: tony.luck@intel.com
Cc: fenghua.yu@intel.com
Cc: peterz@infradead.org
Cc: vikas.shivappa@intel.com
Cc: andi.kleen@intel.com
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1498503368-20173-3-git-send-email-vikas.shivappa@linux.intel.com
arch/x86/kernel/cpu/intel_rdt_rdtgroup.c