aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorMark Brown <[email protected]>2023-07-19 01:58:54 +0100
committerDaniel Lezcano <[email protected]>2023-08-16 10:51:46 +0200
commitc51592a95f360aabf2b8a5691c550e1749dc41eb (patch)
tree4e183ef9113f801d436858102584afe5edd82e00 /lib/test_fortify/write_overflow-strncpy-src.c
parentf664a6b5a9740ae5f4a8c36d01ba0752a1f4a0e0 (diff)
thermal/drivers/sun8i: Free calibration nvmem after reading it
The sun8i thermal driver reads calibration data via the nvmem API at startup, updating the device configuration and not referencing the data again. Rather than explicitly freeing the nvmem data the driver relies on devm_ to release it, even though the data is never referenced again. The allocation is still tracked so it's not leaked but this is notable when looking at the code and is a little wasteful so let's instead explicitly free the nvmem after we're done with it. Signed-off-by: Mark Brown <[email protected]> Acked-by: Jernej Skrabec <[email protected]> Signed-off-by: Daniel Lezcano <[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