.. | .. |
---|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note |
---|
2 | 2 | /* |
---|
3 | 3 | * |
---|
4 | | - * (C) COPYRIGHT 2014-2021 ARM Limited. All rights reserved. |
---|
| 4 | + * (C) COPYRIGHT 2014-2022 ARM Limited. All rights reserved. |
---|
5 | 5 | * |
---|
6 | 6 | * This program is free software and is provided to you under the terms of the |
---|
7 | 7 | * GNU General Public License version 2 as published by the Free Software |
---|
.. | .. |
---|
168 | 168 | void kbase_mem_pool_debugfs_init(struct dentry *parent, |
---|
169 | 169 | struct kbase_context *kctx) |
---|
170 | 170 | { |
---|
171 | | - /* prevent unprivileged use of debug file in old kernel version */ |
---|
172 | | -#if (KERNEL_VERSION(4, 7, 0) <= LINUX_VERSION_CODE) |
---|
173 | | - /* only for newer kernel version debug file system is safe */ |
---|
174 | 171 | const mode_t mode = 0644; |
---|
175 | | -#else |
---|
176 | | - const mode_t mode = 0600; |
---|
177 | | -#endif |
---|
178 | 172 | |
---|
179 | 173 | debugfs_create_file("mem_pool_size", mode, parent, |
---|
180 | 174 | &kctx->mem_pools.small, &kbase_mem_pool_debugfs_fops); |
---|