[PATCH] nvmet-fc: skip hostport ops when the LLDD has no host handle
Christoph Hellwig
hch at lst.de
Wed Oct 14 23:14:49 PDT 2026
On Wed, Oct 14, 2026 at 03:53:03PM +0800, kensanya at 163.com wrote:
> From: TanZheng <tanzheng at kylinos.cn>
>
> nvmet_fc_alloc_hostport() returns NULL when the LLDD passes a NULL
> hosthandle. That is not an ERR_PTR, so nvmet_fc_alloc_target_assoc()
> keeps the association and leaves assoc->hostport NULL.
A NULL hosthandle doesn't make much sense, so why do you want to handle
that?
More information about the Linux-nvme
mailing list