[PATCH 5.15.y] nvmet-tcp: fix use-before-check of sg in bounds validation

Sasha Levin sashal at kernel.org
Tue Apr 7 18:02:10 PDT 2026


On Sat, Apr 05, 2026 at 02:53:36AM +0530, Cengiz Can wrote:
> Fix this by moving the iov_len declaration to function scope and
> keeping the assignment after the bounds checks, matching the ordering
> in mainline.

Queued for 5.15, thanks.

-- Sasha



More information about the Linux-nvme mailing list