diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-02-26 14:53:23 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-03-02 08:52:55 +0100 |
commit | 1931479788c5e3c0396a0bde3606e517c64b9f95 (patch) | |
tree | 6ae88024c465be5f25baa035323808269c3f196c /Documentation | |
parent | 48543bd8e92880b1ca81b15cf392103dc82cd3e0 (diff) | |
download | linux-1931479788c5e3c0396a0bde3606e517c64b9f95.tar.bz2 |
gpiolib: fix bitmap operations related to line event watching
When operating on the bits of watched_lines bitmap, we're using
desc_to_gpio() which returns the GPIO number from the global numberspace.
This leads to all sorts of memory corruptions and invalid behavior. We
should switch to using gpio_chip_hwgpio() instead.
Fixes: 51c1064e82e7 ("gpiolib: add new ioctl() for monitoring changes in line info")
Reported-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Tested-by: Kent Gibson <warthog618@gmail.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions