aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <[email protected]>2024-05-27 09:00:06 +0100
committerRussell King (Oracle) <[email protected]>2024-06-04 17:12:01 +0100
commit616501eccb58615f8f352a29239ea6c6fc5e6546 (patch)
tree4476370e39cb2433755acf4d9eddb8d43faf7b19 /lib/debugobjects.c
parent8d532528ff6a6b1bccf648d0f5713188e292ce8f (diff)
clkdev: don't fail clkdev_alloc() if over-sized
Don't fail clkdev_alloc() if the strings are over-sized. In this case, the entry will not match during lookup, so its useless. However, since code fails if we return NULL leading to boot failure, return a dummy entry with the connection and device IDs set to "bad". Leave the warning so these problems can be found, and the useless wasteful clkdev registrations removed. Reported-by: Ron Economos <[email protected]> Reported-by: Guenter Roeck <[email protected]> Fixes: 8d532528ff6a ("clkdev: report over-sized strings when creating clkdev entries") Closes: https://lore.kernel.org/linux-clk/[email protected]. Link: https://lore.kernel.org/r/[email protected] Tested-by: Ron Economos <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions