diff options
author | Frederic Weisbecker <[email protected]> | 2022-02-07 16:59:09 +0100 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-02-16 15:57:56 +0100 |
commit | 65e53f869e9f92a23593c66214b88e54fb190a13 (patch) | |
tree | 9d601814e021fe163e69b2eed8023c33fc9c0e46 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 0cd3e59de1f53978873669c7c8225ec13e88c3ae (diff) |
sched/isolation: Fix housekeeping_mask memory leak
If "nohz_full=" or "isolcpus=nohz" are called with CONFIG_NO_HZ_FULL=n,
housekeeping_mask doesn't get freed despite it being unused if
housekeeping_setup() is called for the first time.
Check this scenario first to fix this, so that no useless allocation
is performed.
Signed-off-by: Frederic Weisbecker <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Juri Lelli <[email protected]>
Reviewed-by: Paul E. McKenney <[email protected]>
Reviewed-by: Phil Auld <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions