kernel/drivers/firmware/tegra/bpmp-debugfs.c
.. .. @@ -77,13 +77,14 @@ 77 77 const char *root_path, *filename = NULL; 78 78 char *root_path_buf; 79 79 size_t root_len; 80 + size_t root_path_buf_len = 512;80 81 81 - root_path_buf = kzalloc(512, GFP_KERNEL);82 + root_path_buf = kzalloc(root_path_buf_len, GFP_KERNEL);82 83 if (!root_path_buf) 83 84 goto out; 84 85 85 86 root_path = dentry_path(bpmp->debugfs_mirror, root_path_buf, 86 - sizeof(root_path_buf));87 + root_path_buf_len);87 88 if (IS_ERR(root_path)) 88 89 goto out; 89 90