diff options
| author | Georgi Djakov <djakov@kernel.org> | 2026-01-09 14:25:23 +0200 |
|---|---|---|
| committer | Georgi Djakov <djakov@kernel.org> | 2026-01-12 01:58:36 +0200 |
| commit | 8cc27f5c6dd17dd090f3a696683f04336c162ff5 (patch) | |
| tree | dd372c0ffb3031304370bffe7aaac33a5184af45 /include/uapi | |
| parent | a305df4125d17f23d3ce777bb1af9f9bba05efb1 (diff) | |
interconnect: debugfs: initialize src_node and dst_node to empty strings
The debugfs_create_str() API assumes that the string pointer is either NULL
or points to valid kmalloc() memory. Leaving the pointer uninitialized can
cause problems.
Initialize src_node and dst_node to empty strings before creating the
debugfs entries to guarantee that reads and writes are safe.
Fixes: 770c69f037c1 ("interconnect: Add debugfs test client")
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Reviewed-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Tested-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Link: https://lore.kernel.org/r/20260109122523.125843-1-djakov@kernel.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions
