Re: [PATCH v4 06/12] nvmet-fc: hold reference on hostport match

From: Christoph Hellwig
Date: Wed Jan 31 2024 - 01:27:55 EST


On Tue, Jan 30, 2024 at 10:49:32AM +0100, Daniel Wagner wrote:
> The hostport data structure is shared between the association, this why
> we keep track of the users via a refcount. So we should not decrement
> the refcount on a match and free the hostport several times.
>
> Reported by KASAN.
>
> Reviewed-by: Hannes Reinecke <hare@xxxxxxx>
> Signed-off-by: Daniel Wagner <dwagner@xxxxxxx>

Looks good:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>