linux/drivers/misc/cardreader
Tong Zhang 0bfb6d4949 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:05:50 +02:00
..
alcor_pci.c misc: alcor_pci: fix inverted branch condition 2021-07-20 16:05:50 +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 11:38:32 +01:00
rts5228.c
rts5228.h
rts5229.c
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
rts5261.h
rtsx_pcr.c
rtsx_pcr.h misc: rtsx: Add power saving functions and fix driving parameter 2020-09-16 17:30:37 +02:00
rtsx_usb.c