diff options
author | James Smart <jsmart2021@gmail.com> | 2020-07-24 19:40:00 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-29 08:45:20 +0300 |
commit | 34efa23234c8b55dd178bba2216ca9ae9b50e1c9 (patch) | |
tree | 5acd7696d553e6e96cfb6696320793914a1ef913 /scripts/gdb/linux/lists.py | |
parent | 237480760c5050e8e897846b93ba9ffdb6444301 (diff) | |
download | linux-34efa23234c8b55dd178bba2216ca9ae9b50e1c9.tar.xz |
nvmet-fc: check successful reference in nvmet_fc_find_target_assoc
When searching for an association based on an association id, when there
is a match, the code takes a reference. However, it is not validating
that the reference taking was successful.
Check the status of the reference. If unsuccessful, the device is being
deleted and should be ignored.
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions