linux/drivers/opp
Viresh Kumar 173e02d674 OPP: Initialize scope-based pointers inline
Uninitialized pointers with `__free` attribute can cause undefined
behaviour as the memory allocated to the pointer is freed automatically
when the pointer goes out of scope.

The OPP core doesn't have any bugs related to this as of now, but it is
better to initialize pointers marked with `__free` attribute at
declaration to simplify the code and ensure proper scope-based cleanup.

Reported-by: Joe Perches <joe@perches.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2025-10-23 11:58:05 +05:30
..
Kconfig drivers/opp: Remove "select SRCU" 2023-01-05 11:47:21 +05:30
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
core.c OPP: Initialize scope-based pointers inline 2025-10-23 11:58:05 +05:30
cpu.c OPP: Initialize scope-based pointers inline 2025-10-23 11:58:05 +05:30
debugfs.c saner replacement for debugfs_rename() 2025-01-15 13:14:37 +01:00
of.c OPP: Initialize scope-based pointers inline 2025-10-23 11:58:05 +05:30
opp.h OPP: Remove _get_opp_table_kref() 2025-04-24 16:05:33 +05:30
ti-opp-supply.c opp: ti: Drop unnecessary of_match_ptr() 2024-09-04 20:43:41 +05:30