Re: [PATCH 05/10] gpio: mockup: improve the debugfs input sanitization
From: Linus Walleij
Date: Mon May 29 2017 - 07:32:22 EST
On Thu, May 25, 2017 at 10:33 AM, Bartosz Golaszewski <brgl@xxxxxxxx> wrote:
> We're currently only checking the first character of the input to the
> debugfs event files, so a string like '0sdfdsf' is valid and indicates
> a falling edge event.
>
> Be more strict and only allow '0', '1', '0\n' & '1\n'.
>
> Signed-off-by: Bartosz Golaszewski <brgl@xxxxxxxx>
Since I applied patches 1-4 you only need to resend from this point
when posting v2.
Yours,
Linus Walleij