Linus Torvalds 6e3644aca0 proc: proc_skip_spaces() shouldn't think it is working on C strings
commit bce9332220bd677d83b19d21502776ad555a0e73 upstream.

proc_skip_spaces() seems to think it is working on C strings, and ends
up being just a wrapper around skip_spaces() with a really odd calling
convention.

Instead of basing it on skip_spaces(), it should have looked more like
proc_skip_char(), which really is the exact same function (except it
skips a particular character, rather than whitespace).  So use that as
inspiration, odd coding and all.

Now the calling convention actually makes sense and works for the
intended purpose.

Reported-and-tested-by: Kyle Zeng <zengyhkyle@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-12-08 11:15:42 +01:00
..
2022-08-25 11:09:24 +02:00
2019-11-28 18:28:55 +01:00
2018-08-03 07:55:12 +02:00
2021-02-10 09:09:25 +01:00
2020-04-02 17:20:26 +02:00
2018-08-03 07:55:24 +02:00
2020-01-12 11:24:12 +01:00
2016-09-22 20:00:36 -05:00