diff options
| author | Waiman Long <longman@redhat.com> | 2024-02-27 19:58:01 -0500 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2024-02-28 08:02:55 -1000 |
| commit | 66f40b926dd249f74334a22162c09e7ec1ec5b07 (patch) | |
| tree | 8798d3c7165c616318877aab239b685a6892e74c /drivers/net/ethernet/intel/igc | |
| parent | Merge tag 'v6.8-p5' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/... (diff) | |
| download | linux-66f40b926dd249f74334a22162c09e7ec1ec5b07.tar.gz linux-66f40b926dd249f74334a22162c09e7ec1ec5b07.zip | |
cgroup/cpuset: Fix a memory leak in update_exclusive_cpumask()
Fix a possible memory leak in update_exclusive_cpumask() by moving the
alloc_cpumasks() down after the validate_change() check which can fail
and still before the temporary cpumasks are needed.
Fixes: e2ffe502ba45 ("cgroup/cpuset: Add cpuset.cpus.exclusive for v2")
Reported-and-tested-by: Mirsad Todorovac <mirsad.todorovac@alu.hr>
Closes: https://lore.kernel.org/lkml/14915689-27a3-4cd8-80d2-9c30d0c768b6@alu.unizg.hr
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org # v6.7+
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions
