diff options
| author | James Smart <[email protected]> | 2020-07-24 09:40:00 -0700 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2020-07-29 07:45:20 +0200 |
| commit | 34efa23234c8b55dd178bba2216ca9ae9b50e1c9 (patch) | |
| tree | 5acd7696d553e6e96cfb6696320793914a1ef913 /drivers/gpu/drm/amd/amdgpu/atom.c | |
| parent | 237480760c5050e8e897846b93ba9ffdb6444301 (diff) | |
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 <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions