[PATCH] nvmet-fc: check successful reference in nvmet_fc_find_target_assoc
Christoph Hellwig
hch at infradead.org
Sun Jul 26 11:43:46 EDT 2020
On Fri, Jul 24, 2020 at 09:40:00AM -0700, James Smart wrote:
> 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 at gmail.com>
Applied to nvme-5.9, thanks.
More information about the Linux-nvme
mailing list