aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/bug.c
diff options
context:
space:
mode:
authorPetr Pavlu <[email protected]>2025-06-30 14:32:33 +0000
committerDaniel Gomez <[email protected]>2025-07-31 11:57:32 +0000
commit6c171b2ccfe677ca97fc5334f853807959f26589 (patch)
tree47475dd442a2305819356954556e85d70103d0fb /rust/helpers/bug.c
parentmodule: Prevent silent truncation of module name in delete_module(2) (diff)
downloadkernel-6c171b2ccfe677ca97fc5334f853807959f26589.tar.gz
kernel-6c171b2ccfe677ca97fc5334f853807959f26589.zip
module: Remove unnecessary +1 from last_unloaded_module::name size
The variable last_unloaded_module::name tracks the name of the last unloaded module. It is a string copy of module::name, which is MODULE_NAME_LEN bytes in size and includes the NUL terminator. Therefore, the size of last_unloaded_module::name can also be just MODULE_NAME_LEN, without the need for an extra byte. Fixes: e14af7eeb47e ("debug: track and print last unloaded module in the oops trace") Signed-off-by: Petr Pavlu <[email protected]> Reviewed-by: Daniel Gomez <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Gomez <[email protected]>
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions