Files
twx-linux/lib
Jim Cromie 001499d15b dyndbg: fix a BUG_ON in ddebug_describe_flags
[ Upstream commit f678ce8cc3 ]

ddebug_describe_flags() currently fills a caller provided string buffer,
after testing its size (also passed) in a BUG_ON.  Fix this by
replacing them with a known-big-enough string buffer wrapped in a
struct, and passing that instead.

Also simplify ddebug_describe_flags() flags parameter from a struct to
a member in that struct, and hoist the member deref up to the caller.
This makes the function reusable (soon) where flags are unpacked.

Acked-by: <jbaron@akamai.com>
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Link: https://lore.kernel.org/r/20200719231058.1586423-8-jim.cromie@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-21 09:48:06 +02:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-04-20 09:15:07 +02:00
…
…
…
…
…
…
…
…
2019-12-05 15:37:53 +01:00
…
…
…
…
…
…
2019-05-21 18:50:21 +02:00
…
2018-12-08 13:03:35 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-12-13 09:18:52 +01:00
…
…
…
…
…
…
…