commit | eb63fb88512fdb567262b78e930e8dd3441efa34 | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <brgl@bgdev.pl> | Thu Apr 08 14:30:46 2021 +0200 |
committer | Bartosz Golaszewski <brgl@bgdev.pl> | Thu Apr 08 14:30:46 2021 +0200 |
tree | a9ab4fd0b42cd8f24a60fd57bbf4ffaf93fb434e | |
parent | 30846980605b472869b977ab12f83c30b8c9e27f [diff] |
gpioset: fix a segfault with default mode The default mode (exit) doesn't have a callback so we need to check if the callback funtion pointer isn't NULL. Fixes: 9b6e6d268671 ("ctxless: drop all context-less interfaces") Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>