hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
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