diff options
| author | 2026-03-20 23:01:39 +0900 | |
|---|---|---|
| committer | 2026-04-03 22:04:36 +0530 | |
| commit | 9c55d0eb4e9d1bf229d691363fb0641a9b05d904 (patch) | |
| tree | 736d4a8801136ac8a9219bc3f8a7728f0882c7d6 /include/linux/bcma/ssh:/git@git.zx2c4.com | |
| parent | PCI: endpoint: pci-epf-vntb: Implement .get_dma_dev() (diff) | |
misc: pci_endpoint_test: Use -EINVAL for small subrange size
The sub_size check ensures that each subrange is large enough for 32-bit
accesses. Subranges smaller than sizeof(u32) do not satisfy this
assumption, so this is a local sanity check rather than a resource
exhaustion case.
Return -EINVAL instead of -ENOSPC for this case.
Suggested-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://patch.msgid.link/20260320140139.2415480-1-den@valinux.co.jp
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
