aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorDaniel Lezcano <[email protected]>2021-03-19 21:25:22 +0100
committerDaniel Lezcano <[email protected]>2021-04-15 13:21:26 +0200
commit6cc7b38c0ca3187abd07af849ec179b42337bcf6 (patch)
tree4bbf662d300f5e73549426095013affc538bdf78 /lib/test_fortify/write_overflow-strncpy-src.c
parent9aa80ab2c0ba67ce3281aee604b543293f71390d (diff)
thermal/drivers/cpuidle_cooling: Fix use after error
When the function successfully finishes it logs an information about the registration of the cooling device and use its name to build the message. Unfortunately it was freed right before: drivers/thermal/cpuidle_cooling.c:218 __cpuidle_cooling_register() warn: 'name' was already freed. Fix this by freeing after the message happened. Fixes: 6fd1b186d900 ("thermal/drivers/cpuidle_cooling: Use device name instead of auto-numbering") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Acked-by: Viresh Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions