lkml.org 
[lkml]   [2019]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] gpio: mockup: fix debugfs read
On Fri, Mar 22, 2019 at 6:30 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:

> From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
>
> 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>

Patch applied for fixes.
Sorry for slow application, I was in no-wifi-land for some days.

Yours,
Linus Walleij

\
 
 \ /
  Last update: 2019-03-28 17:38    [W:0.041 / U:4.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site