linux_dsm_epyc7002/drivers/misc/cardreader
Tong Zhang 0bfb6d4949 misc: alcor_pci: fix inverted branch condition
commit 281e468446994a7672733af2bf941f4110d4a895 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-20 16:05:50 +02:00
..
alcor_pci.c misc: alcor_pci: fix inverted branch condition 2021-07-20 16:05:50 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile misc: rtsx: Add support new chip rts5228 mmc: rtsx: Add support MMC_CAP2_NO_MMC 2020-07-10 14:58:47 +02:00
rtl8411.c misc: rtsx: Remove rtsx_pci_read/write_config() wrappers 2020-07-22 13:29:44 +02:00
rts5209.c misc: rtsx: Remove rtsx_pci_read/write_config() wrappers 2020-07-22 13:29:44 +02:00
rts5227.c misc: rtsx: init of rts522a add OCP power off when no card is present 2021-03-04 11:38:32 +01:00
rts5228.c misc: rtsx: Fix power down flow 2020-09-16 17:30:37 +02:00
rts5228.h misc: rtsx: Add support new chip rts5228 mmc: rtsx: Add support MMC_CAP2_NO_MMC 2020-07-10 14:58:47 +02:00
rts5229.c misc: rtsx: Remove rtsx_pci_read/write_config() wrappers 2020-07-22 13:29:44 +02:00
rts5249.c misc: rtsx: Add power saving functions and fix driving parameter 2020-09-16 17:30:37 +02:00
rts5260.c misc: rtsx: Add power saving functions and fix driving parameter 2020-09-16 17:30:37 +02:00
rts5260.h
rts5261.c misc: rtsx: Use standard PCI definitions 2020-07-22 13:39:31 +02:00
rts5261.h misc: rtsx: Add support for RTS5261 2019-11-14 13:07:48 +08:00
rtsx_pcr.c misc: rtsx: Fix power down flow 2020-09-16 17:30:37 +02:00
rtsx_pcr.h misc: rtsx: Add power saving functions and fix driving parameter 2020-09-16 17:30:37 +02:00
rtsx_usb.c misc: rtsx_usb: Constify struct usb_device_id 2020-06-29 18:39:45 +02:00