[PATCH v2] nvme-fc: initialize result on transport failure

Keith Busch kbusch at kernel.org
Wed Dec 2 07:15:34 PST 2026


On Mon, 30 Nov 2026 08:07:34 -0500, Andrew Stellman wrote:
> nvme_fc_fcpio_done() declares result without an initializer. When a
> command is aborted, it jumps to done without setting result and passes
> it to nvme_try_complete_req(). For a passthrough command, the ioctl
> then copies that uninitialized value to user space along with the host
> aborted status.
> 
> Initialize result to zero.
> 
> [...]

Thanks, applied to nvme-7.4.

[1/1] nvme-fc: initialize result on transport failure
      commit: d6beb0073327394bce5777bcb6c7583f9e91714c
--
Keith Busch <kbusch at kernel.org>




More information about the Linux-nvme mailing list