summaryrefslogtreecommitdiff
path: root/drivers/w1/masters
diff options
context:
space:
mode:
authorTong Zhang <ztong0001@gmail.com>2021-05-22 07:37:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-22 11:34:48 +0300
commit281e468446994a7672733af2bf941f4110d4a895 (patch)
tree16e51d91805ea74cac986b3c944ef1cab3e7b16e /drivers/w1/masters
parent78429edfeed8da0562243e876be46d700f9ed13c (diff)
downloadlinux-281e468446994a7672733af2bf941f4110d4a895.tar.xz
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: Colin Ian King <colin.king@canonical.com> Fixes: 3ce3e45cc333 ("misc: alcor_pci: fix null-ptr-deref when there is no PCI bridge") Signed-off-by: Tong Zhang <ztong0001@gmail.com> Link: https://lore.kernel.org/r/20210522043725.602179-1-ztong0001@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1/masters')
0 files changed, 0 insertions, 0 deletions