Re: [PATCH v2] x86/resctrl: Fix potential memory leak
From: Reinette Chatre
Date: Fri Dec 20 2019 - 12:35:49 EST
Hi Shakeel,
On 12/20/2019 8:43 AM, Shakeel Butt wrote:
> The set_cache_qos_cfg() is leaking memory when the given level is not
> RDT_RESOURCE_L3 or RDT_RESOURCE_L2. However at the moment, this function
> is called with only valid levels but to make it more robust and future
> proof, we should be handling the error path gracefully.
>
> Fixes: 99adde9b370de ("x86/intel_rdt: Enable L2 CDP in MSR IA32_L2_QOS_CFG")
> Signed-off-by: Shakeel Butt <shakeelb@xxxxxxxxxx>
> Acked-by: Fenghua Yu <fenghua.yu@xxxxxxxxx>
> ---
> Changes since v1:
> - Updated the commit message
Thank you.
Acked-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>
Reinette