forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/firmware/tegra/bpmp-debugfs.c
....@@ -77,13 +77,14 @@
7777 const char *root_path, *filename = NULL;
7878 char *root_path_buf;
7979 size_t root_len;
80
+ size_t root_path_buf_len = 512;
8081
81
- root_path_buf = kzalloc(512, GFP_KERNEL);
82
+ root_path_buf = kzalloc(root_path_buf_len, GFP_KERNEL);
8283 if (!root_path_buf)
8384 goto out;
8485
8586 root_path = dentry_path(bpmp->debugfs_mirror, root_path_buf,
86
- sizeof(root_path_buf));
87
+ root_path_buf_len);
8788 if (IS_ERR(root_path))
8889 goto out;
8990