aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strscpy.c
diff options
context:
space:
mode:
authorDavid Arcari <[email protected]>2023-03-30 09:42:18 -0400
committerRafael J. Wysocki <[email protected]>2023-03-30 20:04:29 +0200
commitae817e618d4b5d221daae34d32a39476e4bdcb36 (patch)
tree357766be7ebd4f86080f3a847c9c2454d6bb9b13 /lib/test_fortify/write_overflow-strscpy.c
parenta57cc2dbb3738930d9cb361b9b473f90c8ede0b8 (diff)
thermal: intel: powerclamp: Fix cpumask and max_idle module parameters
When cpumask is specified as a module parameter the value is overwritten by the module init routine. This can easily be fixed by checking to see if the mask has already been allocated in the init routine. When max_idle is specified as a module parameter a panic will occur. The problem is that the idle_injection_cpu_mask is not allocated until the module init routine executes. This can easily be fixed by allocating the cpumask if it's not already allocated. Fixes: ebf519710218 ("thermal: intel: powerclamp: Add two module parameters") Signed-off-by: David Arcari <[email protected]> Reviewed-by: Srinivas Pandruvada<[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions