aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2017-04-11 07:14:46 +0000
committerThomas Gleixner <[email protected]>2017-04-11 07:48:12 +0000
commit7f00f388712b29005782bad7e4b25942620f3b9c (patch)
treef8b1b2f7a6ec3238171276b7c3ecac242fccc36d /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentx86/debug: Fix the printk() debug output of signal_fault(), do_trap() and do_... (diff)
downloadkernel-7f00f388712b29005782bad7e4b25942620f3b9c.tar.gz
kernel-7f00f388712b29005782bad7e4b25942620f3b9c.zip
x86/intel_rdt: Fix locking in rdtgroup_schemata_write()
The schemata lock is released before freeing the resource's temporary tmp_cbms allocation. That's racy versus another write which allocates and uses new temporary storage, resulting in memory leaks, freeing in use memory, double a free or any combination of those. Move the unlock after the release code. Fixes: 60ec2440c63d ("x86/intel_rdt: Add schemata file") Signed-off-by: Jiri Olsa <[email protected]> Cc: Fenghua Yu <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Shaohua Li <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions