Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clk: clkdev: don't fail clkdev_alloc() if over-sized #1058

Closed
wants to merge 1 commit into from

Conversation

bjoto
Copy link

@bjoto bjoto commented May 28, 2024

Pull request for series with
subject: clk: clkdev: don't fail clkdev_alloc() if over-sized
version: 1
url: https://patchwork.kernel.org/project/linux-riscv/list/?series=856416

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.

Fixes: 8d53252 ("clkdev: report over-sized strings when creating clkdev entries")
Closes: https://lore.kernel.org/linux-clk/7eda7621-0dde-4153-89e4-172e4c095d01@roeck-us.net.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
@bjoto
Copy link
Author

bjoto commented May 28, 2024

Upstream branch: 1613e60
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=856416
version: 1

@bjoto
Copy link
Author

bjoto commented May 28, 2024

At least one diff in series https://patchwork.kernel.org/project/linux-riscv/list/?series=856416 irrelevant now. Closing PR.

@bjoto bjoto closed this May 28, 2024
@bjoto bjoto deleted the series/856416=>for-next branch May 28, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant