diff options
author | Chenghai Huang <huangchenghai2@huawei.com> | 2024-04-07 09:59:55 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-04-12 09:07:52 +0200 |
commit | 3b7db97e60ac25c1e050a5d3e3a2e6a22c3f7f2d (patch) | |
tree | e6b7c4c5b46170fa8e1e563a92e52175de426b62 /lib/once.c | |
parent | crypto: hisilicon/sgl - Delete redundant parameter verification (diff) | |
download | linux-3b7db97e60ac25c1e050a5d3e3a2e6a22c3f7f2d.tar.xz linux-3b7db97e60ac25c1e050a5d3e3a2e6a22c3f7f2d.zip |
crypto: hisilicon/debugfs - Fix the processing logic issue in the debugfs creation
There is a scenario where the file directory is created but the
file attribute is not set. In this case, if a user accesses the
file, an error occurs.
So adjust the processing logic in the debugfs creation to
prevent the file from being accessed before the file attributes
such as the index are set.
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/once.c')
0 files changed, 0 insertions, 0 deletions