diff options
| author | John Pittman <[email protected]> | 2018-08-27 18:33:05 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-08-28 01:17:02 +0000 |
| commit | db193954ed9e35701b6e489fa4cc97b08589341b (patch) | |
| tree | 5ebcc8fb74104392763ba3a03eae0196f19ea6cd /tools/testing/radix-tree/xarray.c | |
| parent | block: remove unnecessary condition check (diff) | |
| download | kernel-db193954ed9e35701b6e489fa4cc97b08589341b.tar.gz kernel-db193954ed9e35701b6e489fa4cc97b08589341b.zip | |
block: bsg: move atomic_t ref_count variable to refcount API
Currently, variable ref_count within the bsg_device struct is of
type atomic_t. For variables being used as reference counters,
the refcount API should be used instead of atomic. The newer
refcount API works to prevent counter overflows and use-after-free
bugs. So, move this varable from the atomic API to refcount,
potentially avoiding the issues mentioned.
Signed-off-by: John Pittman <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/xarray.c')
0 files changed, 0 insertions, 0 deletions
