Re: [PATCH v5 09/16] nvme-pci: implement dma-buf backed requests

From: Pavel Begunkov

Date: Tue Aug 04 2026 - 05:53:33 EST


On 8/4/26 08:29, Anuj Gupta/Anuj Gupta wrote:
On 8/1/2026 9:16 PM, Pavel Begunkov wrote:
...>> + if (WARN_ON_ONCE(seg_shift < NVME_CTRL_PAGE_SHIFT))
+ return ERR_PTR(-EFAULT);

This should be 'goto err;' instead of a direct return. If this ever
triggers, it leaks the map and already established sgt mapping.

I can change it as I'm going to respin the series anyway,
but it doesn't really matter here as it's a warning and
shouldn't happen.

--
Pavel Begunkov