linux-stable/drivers/misc/cardreader
Tong Zhang b06ab67bd6 misc: alcor_pci: fix inverted branch condition
commit 281e468446 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: 3ce3e45cc3 ("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:10:53 +02:00
..
alcor_pci.c misc: alcor_pci: fix inverted branch condition 2021-07-20 16:10:53 +02:00
Kconfig
Makefile
rtl8411.c
rts5209.c
rts5227.c misc: rtsx: init of rts522a add OCP power off when no card is present 2021-03-04 10:26:45 +01:00
rts5229.c
rts5249.c
rts5260.c
rts5260.h
rtsx_pcr.c misc: rtsx: do not setting OC_POWER_DOWN reg in rtsx_pci_init_ocp() 2020-11-01 12:01:06 +01:00
rtsx_pcr.h
rtsx_usb.c