diff options
author | Elena Reshetova <elena.reshetova@intel.com> | 2017-03-06 16:21:11 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-05-01 22:20:43 -0700 |
commit | 5981c245a890db6a6e16fb6d3838cc9fc9fdf0ff (patch) | |
tree | a1aa3f65fa046e1ac40b923e97b8b2f36b347c08 /drivers/target/target_core_pr.h | |
parent | a5d68ba85801a78c892a0eb8efb711e293ed314b (diff) |
target/iblock: convert iblock_req.pending from atomic_t to refcount_t
refcount_t type and corresponding API should be
used instead of atomic_t when the variable is used as
a reference counter. This allows to avoid accidental
refcounter overflows that might lead to use-after-free
situations.
Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
Signed-off-by: Hans Liljestrand <ishkamiel@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David Windsor <dwindsor@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_pr.h')
0 files changed, 0 insertions, 0 deletions