aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netconsole.c
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2024-07-08 20:07:21 +0000
committerGreg Kroah-Hartman <[email protected]>2024-07-10 07:35:09 +0000
commita23b018c3bf646274f02edd46bf448c20c826d94 (patch)
tree21624acc0d86941a19ca26eb057a4ba4739fd10d /drivers/net/netconsole.c
parentfirmware_loader: annotate doctests as `no_run` (diff)
downloadkernel-a23b018c3bf646274f02edd46bf448c20c826d94.tar.gz
kernel-a23b018c3bf646274f02edd46bf448c20c826d94.zip
firmware_loader: fix soundness issue in `request_internal`
`request_internal` must be called with one of the following function pointers: request_firmware(), firmware_request_nowarn(), firmware_request_platform() or request_firmware_direct(). The previous `FwFunc` alias did not guarantee this, which is unsound. In order to fix this up, implement `FwFunc` as new type with a corresponding type invariant. Reported-by: Gary Guo <[email protected]> Closes: https://lore.kernel.org/lkml/20240620143611.7995e0bb@eugeo/ Signed-off-by: Danilo Krummrich <[email protected]> Reviewed-by: Christian Schrefl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/net/netconsole.c')
0 files changed, 0 insertions, 0 deletions