diff options
author | Edmond Chung <edmondchung@google.com> | 2020-11-30 23:47:53 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-12-02 10:40:55 +0100 |
commit | 6dbbf84603961d4e8eaea46e3530373c8cffee67 (patch) | |
tree | a8e66c902eebae129d1d4296cb668b9dfeec8aca /drivers/cpufreq | |
parent | gpio: dwapb: fix NULL pointer dereference at dwapb_gpio_suspend() (diff) | |
download | linux-6dbbf84603961d4e8eaea46e3530373c8cffee67.tar.xz linux-6dbbf84603961d4e8eaea46e3530373c8cffee67.zip |
gpiolib: Don't free if pin ranges are not defined
A similar check was added in gpiochip_generic_request, but not in free.
This has caused an imbalance count of request vs. free calls to the
pinctrl driver. This patch is targeted to fix that issue.
Fixes: 2ab73c6d8323 ("gpio: Support GPIO controllers without pin-ranges")
Signed-off-by: Edmond Chung <edmondchung@google.com>
Signed-off-by: Andrew Chant <achant@google.com>
Signed-off-by: Will McVicker <willmcvicker@google.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/cpufreq')
0 files changed, 0 insertions, 0 deletions