summaryrefslogtreecommitdiff
path: root/drivers/cdrom/cdrom.c
diff options
context:
space:
mode:
authorJohn Pittman <jpittman@redhat.com>2018-08-27 21:33:05 +0300
committerJens Axboe <axboe@kernel.dk>2018-08-28 04:17:02 +0300
commitdb193954ed9e35701b6e489fa4cc97b08589341b (patch)
tree5ebcc8fb74104392763ba3a03eae0196f19ea6cd /drivers/cdrom/cdrom.c
parent62d2a1940709198a522a43ff8be8b8f6b3654dec (diff)
downloadlinux-db193954ed9e35701b6e489fa4cc97b08589341b.tar.xz
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 <jpittman@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/cdrom/cdrom.c')
0 files changed, 0 insertions, 0 deletions