CC: Geert (because, I think he was asked about the Rcar GPIO check before).
On 28/02/2025 10:23, Linus Walleij wrote:
On Thu, Feb 27, 2025 at 9:24 AM Matti Vaittinen
<mazziesaccount@xxxxxxxxx> wrote:
The call graph should look like this:
devm_gpiod_get_array()
gpiod_get_array()
gpiod_get_index(0...n)
gpiod_find_and_request()
gpiod_request()
gpiod_request_commit()
Here in my setup the guard.gc->request == NULL. Thus the code never goes to the branch with the validation. And just before you ask me why the guard.gc->request is NULL - what do you call a blind bambi? :)
- No idea.
gpiochip_line_is_valid()
Eg, This is never called.