summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>2026-04-07 18:14:20 +0530
committerBjorn Helgaas <bhelgaas@google.com>2026-06-22 15:31:05 -0500
commit33bd1ea748bc897c4d13437284e08c658e8d1340 (patch)
tree4ae069774e12dd34d516874a17bf54688274c671 /scripts
parent4dcddc1c794d1c65eda68f1f8dd04a0fecc0870f (diff)
PCI: endpoint: pci-epf-vntb: Add check to detect 'db_count' value of 0
epf_ntb->db_count value should be within 1 to MAX_DB_COUNT. Current code only checks for the upper bound, while the lower bound is unchecked. This can cause a lot of issues in the driver if the user passes 'db_count' as 0. Add a check for 0 also. While at it, remove the redundant 'db_count' assignment. Fixes: e35f56bb0330 ("PCI: endpoint: Support NTB transfer between RC and EP") Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Koichiro Den <den@valinux.co.jp> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20260407124421.282766-2-mani@kernel.org
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions