Searched hist:"2583303 debb7acc77295b77901916d08a4c743c2" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpio/ |
H A D | gpio-mockup.c | diff 2583303debb7acc77295b77901916d08a4c743c2 Fri Mar 22 12:27:12 CDT 2019 Bartosz Golaszewski <bgolaszewski@baylibre.com> gpio: mockup: fix debugfs read
The debugfs read callback must advance ppos or users using read() on the file descriptor will never get the EOL. This wasn't spotted before as I was using busybox cat for testing which uses sendfile() internally and only noticed it now when switched to cat from coreutils.
Fixes: 2a9e27408e12 ("gpio: mockup: rework debugfs interface") Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
|