aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pci/controller/dwc/pcie-qcom-common.c
diff options
context:
space:
mode:
authorQianfeng Rong <rongqianfeng@vivo.com>2025-08-19 21:12:33 +0800
committerManivannan Sadhasivam <mani@kernel.org>2025-08-27 19:32:21 +0530
commitffdd27d36265be108827c606c9fbe81a5947547e (patch)
tree7c9e60221d74367253eef08e249ba18bceeef25b /drivers/pci/controller/dwc/pcie-qcom-common.c
parentLinux 6.17-rc1 (diff)
downloadwireguard-linux-ffdd27d36265be108827c606c9fbe81a5947547e.tar.xz
wireguard-linux-ffdd27d36265be108827c606c9fbe81a5947547e.zip
PCI: keystone: Use kcalloc() instead of kzalloc()
Replace calls of devm_kzalloc() with devm_kcalloc() in ks_pcie_probe(). As noted in the kernel documentation [1], open-coded multiplication in allocator arguments is discouraged because it can lead to integer overflow. Using devm_kcalloc() provides built-in overflow protection, making the memory allocation safer when calculating the allocation size compared to explicit multiplication. [1]: https://www.kernel.org/doc/html/next/process/deprecated.html#open-coded-arithmetic-in-allocator-arguments Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com> Link: https://patch.msgid.link/20250819131235.152967-1-rongqianfeng@vivo.com
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions