summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2025-07-02 22:25:42 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-09 13:30:29 +0200
commit00bbe512e60f681aef132f0dd2c92eb6521acef1 (patch)
tree5a04cb5b3fd42cec1591a3ffbebb5df274cc41ba /rust/kernel
parentd9bc88aa54d6aa22ff1e850a86be7a37f0503889 (diff)
fix tt_command_write()
1) unbalanced debugfs_file_get(). Not needed in the first place - file_operations are accessed only via debugfs_create_file(), so debugfs wrappers will take care of that itself. 2) kmalloc() for a buffer used only for duration of a function is not a problem, but for a buffer no longer than 16 bytes? 3) strstr() is for finding substrings; for finding a character there's strchr(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: "Rafael J. Wysocki" <rafael@kernel.org> Link: https://lore.kernel.org/r/20250702212542.GH3406663@ZenIV Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions