Skip to content
Commit 616501ec authored by Russell King (Oracle)'s avatar Russell King (Oracle)
Browse files

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: default avatarRon Economos <re@w6rz.net>
Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
Fixes: 8d532528 ("clkdev: report over-sized strings when creating clkdev entries")
Closes: https://lore.kernel.org/linux-clk/7eda7621-0dde-4153-89e4-172e4c095d01@roeck-us.net.
Link: https://lore.kernel.org/r/28114882-f8d7-21bf-4536-a186e8d7a22a@w6rz.net


Tested-by: default avatarRon Economos <re@w6rz.net>
Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
parent 8d532528
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment