Skip to content
Commit 281e4684 authored by Tong Zhang's avatar Tong Zhang Committed by Greg Kroah-Hartman
Browse files

misc: alcor_pci: fix inverted branch condition



This patch fixes a trivial mistake that I made in the previous attempt
in fixing the null bridge issue. The branch condition is inverted and we
should call alcor_pci_find_cap_offset() only if bridge is not null.

Reported-by: default avatarColin Ian King <colin.king@canonical.com>
Fixes: 3ce3e45c ("misc: alcor_pci: fix null-ptr-deref when there is no PCI bridge")
Signed-off-by: default avatarTong Zhang <ztong0001@gmail.com>
Link: https://lore.kernel.org/r/20210522043725.602179-1-ztong0001@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 78429edf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment