Skip to content
Commit a3bd7efb authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Benjamin Cabé
Browse files

gpio: shell: fix a crash where there's less line names than gpios



Don't try to dereference line_names if the index is beyond
line_names_len, this can happen if there's less line names than the
total amount of supported gpios specified.

Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
parent 323b0d8c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment