summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorJohn Pittman2018-08-23 19:35:55 +0200
committerMike Snitzer2018-10-16 20:27:03 +0200
commit22d4c291f58752d14efb8a185b772a3fc3e947d2 (patch)
tree55144e1410ade5a605d19b444a409cfc133af7de /drivers/md/md.h
parentdm table: require that request-based DM be layered on blk-mq devices (diff)
downloadkernel-qcow2-linux-22d4c291f58752d14efb8a185b772a3fc3e947d2.tar.gz
kernel-qcow2-linux-22d4c291f58752d14efb8a185b772a3fc3e947d2.tar.xz
kernel-qcow2-linux-22d4c291f58752d14efb8a185b772a3fc3e947d2.zip
dm thin: use refcount_t for thin_c reference counting
The API surrounding refcount_t should be used in place of atomic_t when variables are being used as reference counters. It can potentially prevent reference counter overflows and use-after-free conditions. In the dm thin layer, one such example is tc->refcount. Change this from the atomic_t API to the refcount_t API to prevent mentioned conditions. Signed-off-by: John Pittman <jpittman@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/md.h')
0 files changed, 0 insertions, 0 deletions