We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 107cd25 commit d479244Copy full SHA for d479244
arch/x86/kernel/cpu/intel_rdt.c
@@ -525,10 +525,6 @@ static void domain_remove_cpu(int cpu, struct rdt_resource *r)
525
*/
526
if (static_branch_unlikely(&rdt_mon_enable_key))
527
rmdir_mondata_subdir_allrdtgrp(r, d->id);
528
- kfree(d->ctrl_val);
529
- kfree(d->rmid_busy_llc);
530
- kfree(d->mbm_total);
531
- kfree(d->mbm_local);
532
list_del(&d->list);
533
if (is_mbm_enabled())
534
cancel_delayed_work(&d->mbm_over);
@@ -545,6 +541,10 @@ static void domain_remove_cpu(int cpu, struct rdt_resource *r)
545
541
cancel_delayed_work(&d->cqm_limbo);
546
542
}
547
543
544
+ kfree(d->ctrl_val);
+ kfree(d->rmid_busy_llc);
+ kfree(d->mbm_total);
+ kfree(d->mbm_local);
548
kfree(d);
549
return;
550
0 commit comments