mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-22 17:35:51 +00:00
On failure pcie_capability_read_dword() sets it's last parameter, val to 0. However, with Patch 14/14, it is possible that val is set to ~0 on failure. This would introduce a bug because (x & x) == (~0 & x). This bug can be avoided without changing the function's behaviour if the return value of pcie_capability_read_dword is checked to confirm success. Check the return value of pcie_capability_read_dword() to ensure success. Suggested-by: Bjorn Helgaas <bjorn@helgaas.com> Signed-off-by: Bolarinwa Olayemi Saheed <refactormyself@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200713175529.29715-3-refactormyself@gmail.com |
||
|---|---|---|
| .. | ||
| 3945-debug.c | ||
| 3945-mac.c | ||
| 3945-rs.c | ||
| 3945.c | ||
| 3945.h | ||
| 4965-calib.c | ||
| 4965-debug.c | ||
| 4965-mac.c | ||
| 4965-rs.c | ||
| 4965.c | ||
| 4965.h | ||
| commands.h | ||
| common.c | ||
| common.h | ||
| csr.h | ||
| debug.c | ||
| iwl-spectrum.h | ||
| Kconfig | ||
| Makefile | ||
| prph.h | ||