diff options
author | Xiyu Yang <xiyuyang19@fudan.edu.cn> | 2021-07-20 18:05:11 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-07-30 05:58:36 +0300 |
commit | d5ee8e750c9449e9849a09ce6fb6b8adeaa66adc (patch) | |
tree | 6df905f46fef4e34073c1dc2c6ac9407de3ded3a /fs/io-wq.c | |
parent | 192b722f3866d3fb45b9e6a6ecd02ff09f2aefbe (diff) | |
download | linux-d5ee8e750c9449e9849a09ce6fb6b8adeaa66adc.tar.xz |
padata: Convert from atomic_t to refcount_t on parallel_data->refcnt
refcount_t type and corresponding API can protect refcounters from
accidental underflow and overflow and further use-after-free situations.
Signed-off-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Signed-off-by: Xin Tan <tanxin.ctf@gmail.com>
Acked-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'fs/io-wq.c')
0 files changed, 0 insertions, 0 deletions