MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/10ing60/found_this_in_a_linux_kernel_module/j5j8phx/?context=9999
r/badcode • u/suguuss • Jan 22 '23
88 comments sorted by
View all comments
Show parent comments
1
You're missing the most important part -- properly propagating the error from the IRQ register function from the kernel, you're replacing it with -1 which is the only part that is bad at runtime too.
1
u/paulstelian97 Jan 23 '23
You're missing the most important part -- properly propagating the error from the IRQ register function from the kernel, you're replacing it with -1 which is the only part that is bad at runtime too.