Loading
PCI: keystone: Fix if-statement expression in ks_pcie_quirk()
mainline inclusion from mainline-v6.12-rc1 commit 6188a1c762eb9bbd444f47696eda77a5eae6207a category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAVU7T CVE: CVE-2024-47667 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6188a1c762eb9bbd444f47696eda77a5eae6207a -------------------------------- This code accidentally uses && where || was intended. It potentially results in a NULL dereference. Thus, fix the if-statement expression to use the correct condition. Fixes: 86f271f22bbb ("PCI: keystone: Add workaround for Errata #i2037 (AM65x SR 1.0)") Link: https://lore.kernel.org/linux-pci/1b762a93-e1b2-4af3-8c04-c8843905c279@stanley.mountain Signed-off-by:Dan Carpenter <dan.carpenter@linaro.org> [kwilczynski: commit log] Signed-off-by:
Krzysztof Wilczyński <kwilczynski@kernel.org> Reviewed-by:
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by:
Siddharth Vadapalli <s-vadapalli@ti.com> Signed-off-by:
Heyuan Wang <wangheyuan2@h-partners.com>