diff options
author | Christian A. Ehrhardt <[email protected]> | 2024-01-29 20:25:56 +0100 |
---|---|---|
committer | Rob Herring <[email protected]> | 2024-01-31 16:04:18 -0600 |
commit | 607aad1e4356c210dbef9022955a3089377909b2 (patch) | |
tree | 6e360cc0a6919530d61dc91015ecf8ed58b68d4b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8f7e917907385e112a845d668ae2832f41e64bf5 (diff) |
of: unittest: Fix compile in the non-dynamic case
If CONFIG_OF_KOBJ is not set, a device_node does not contain a
kobj and attempts to access the embedded kobj via kref_read break
the compile.
Replace affected kref_read calls with a macro that reads the
refcount if it exists and returns 1 if there is no embedded kobj.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: 4dde83569832 ("of: Fix double free in of_parse_phandle_with_args_map")
Signed-off-by: Christian A. Ehrhardt <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions