diff options
| author | Kees Cook <[email protected]> | 2025-04-15 16:15:19 +0000 |
|---|---|---|
| committer | Luiz Augusto von Dentz <[email protected]> | 2025-04-16 20:50:47 +0000 |
| commit | 875db86e1ec75fe633f1e85ed2f92c731cdbf760 (patch) | |
| tree | e5c2b8054cf2ab9accdcba8d3a71662fa30e5646 /net/core/lock_debug.c | |
| parent | Bluetooth: l2cap: Process valid commands in too long frame (diff) | |
| download | kernel-875db86e1ec75fe633f1e85ed2f92c731cdbf760.tar.gz kernel-875db86e1ec75fe633f1e85ed2f92c731cdbf760.zip | |
Bluetooth: vhci: Avoid needless snprintf() calls
Avoid double-copying of string literals. Use a "const char *" for each
string instead of copying from .rodata into stack and then into the skb.
We can go directly from .rodata to the skb.
This also works around a Clang bug (that has since been fixed[1]).
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: ab4e4380d4e1 ("Bluetooth: Add vhci devcoredump support")
Link: https://github.com/llvm/llvm-project/commit/ea2e66aa8b6e363b89df66dc44275a0d7ecd70ce [1]
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Reviewed-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Diffstat (limited to 'net/core/lock_debug.c')
0 files changed, 0 insertions, 0 deletions
