В ядре Linux устранена следующая уязвимость:
clocksource/drivers/cadence-ttc: исправлена утечка памяти в ttc_timer_probe.
Отчеты о совпадениях:
драйверы/locksource/timer-cadence-ttc.c:529 ttc_timer_probe()
предупреждение: 'timer_baseaddr' из of_iomap() не выпущен в строках: 498 508 516.
timer_baseaddr может иметь проблему с тем, что он не освобождается после использования,
Я заменил ее функцией devm_of_iomap() и добавил clk_put().
функция для очистки «clk_ce» и «clk_cs».
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe Smatch reports: drivers/clocksource/timer-cadence-ttc.c:529 ttc_timer_probe() warn: 'timer_baseaddr' from of_iomap() not released on lines: 498,508,516. timer_baseaddr may have the problem of not being released after use, I replaced it with the devm_of_iomap() function and added the clk_put() function to cleanup the "clk_ce" and "clk_cs".