diff options
| author | Barnabás Pőcze <pobrn@protonmail.com> | 2026-03-10 20:44:03 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-03-11 09:47:25 +0100 |
| commit | 6df6ea4b3d1567dbe6442f308735c23b63007c7f (patch) | |
| tree | cd5a4846d44a14a5a4f26c27961886c4999f85db /fs/devfs/git@git.tavy.me:linux.git | |
| parent | 189645ba9cd9c1eed45151aacaae4347c1eb86a7 (diff) | |
gpiolib: clear requested flag if line is invalid
If `gpiochip_line_is_valid()` fails, then `-EINVAL` is returned, but
`desc->flags` will have `GPIOD_FLAG_REQUESTED` set, which will result
in subsequent calls misleadingly returning `-EBUSY`.
Fix that by clearing the flag in case of failure.
Fixes: a501624864f3 ("gpio: Respect valid_mask when requesting GPIOs")
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/20260310204359.1202451-1-pobrn@protonmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'fs/devfs/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
