commit | 6082134bac02d4619c8b637ae9e0bb886e6159cd | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Wed Mar 06 16:03:34 2019 +0100 |
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Wed Mar 06 17:53:37 2019 +0100 |
tree | 94b0133893f9401d3325a51d20e0284ea69de4f4 | |
parent | 54b2a099c1bdcb58d280f62a9dafd1ec46c9a80b [diff] |
core: ctxless: bail-out if num_lines == 0 Return -1 and set errno to EINVAL if the number of lines specified in any context-less helper is 0. This is done in addition to bailing out when the number is higher than the maximum supported number of GPIO lines. This fixes the segfaults that currently ocurr for num_lines == 0. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>