Re: [PATCH] x86/resctrl: Fix potential memory leak
From: Fenghua Yu
Date: Thu Dec 19 2019 - 17:51:21 EST
On Thu, Dec 19, 2019 at 02:38:34PM -0800, Shakeel Butt wrote:
> The set_cache_qos_cfg() is leaking memory when the given level is not
> RDT_RESOURCE_L3 or RDT_RESOURCE_L2. Fix that.
>
> 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>
Thanks.
-Fenghua