aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorJim Cromie <[email protected]>2020-07-19 17:10:47 -0600
committerGreg Kroah-Hartman <[email protected]>2020-07-24 17:00:08 +0200
commitf678ce8cc3cb2ad29df75d8824c74f36398ba871 (patch)
treef36cc9d73ccbd8cfdd31046453a42a6b59ac57d6 /drivers/fpga/fpga-mgr.c
parent81d0c2c60942cf35daf3fc18d42606f669fcf44c (diff)
dyndbg: fix a BUG_ON in ddebug_describe_flags
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: <[email protected]> Signed-off-by: Jim Cromie <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions