diff options
| author | Al Viro <[email protected]> | 2025-07-02 21:25:42 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-07-09 11:30:29 +0000 |
| commit | 00bbe512e60f681aef132f0dd2c92eb6521acef1 (patch) | |
| tree | 5a04cb5b3fd42cec1591a3ffbebb5df274cc41ba /rust/helpers/xarray.c | |
| parent | debugfs: split short and full proxy wrappers, kill debugfs_real_fops() (diff) | |
| download | kernel-00bbe512e60f681aef132f0dd2c92eb6521acef1.tar.gz kernel-00bbe512e60f681aef132f0dd2c92eb6521acef1.zip | |
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 <[email protected]>
Acked-by: "Rafael J. Wysocki" <[email protected]>
Link: https://lore.kernel.org/r/20250702212542.GH3406663@ZenIV
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions
