android_kernel_xiaomi_sm8450/drivers
Dan Carpenter c289903b7a PCI: keystone: Fix if-statement expression in ks_pcie_quirk()
[ Upstream commit 6188a1c762eb9bbd444f47696eda77a5eae6207a ]

This code accidentally uses && where || was intended.  It potentially
results in a NULL dereference.

Thus, fix the if-statement expression to use the correct condition.

Fixes: 86f271f22bbb ("PCI: keystone: Add workaround for Errata #i2037 (AM65x SR 1.0)")
Link: https://lore.kernel.org/linux-pci/1b762a93-e1b2-4af3-8c04-c8843905c279@stanley.mountain
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-17 15:07:52 +02:00
..
accessibility speakup: Fix sizeof() vs ARRAY_SIZE() bug 2024-06-16 13:31:59 +02:00
acpi ACPI: PMIC: Remove unneeded check in tps68470_pmic_opregion_probe() 2024-10-17 15:07:38 +02:00
amba amba: bus: fix refcount leak 2023-09-19 12:20:19 +02:00
android binder: fix UAF caused by offsets overwrite 2024-09-12 11:06:50 +02:00
ata ata: pata_macio: Use WARN instead of BUG 2024-09-12 11:06:49 +02:00
atm atm: idt77252: prevent use after free in dequeue_rx() 2024-09-04 13:17:31 +02:00
auxdisplay
base device property: Add const qualifier to device_get_match_data() parameter 2024-10-17 15:07:44 +02:00
bcma
block rbd: don't assume RBD_LOCK_STATE_LOCKED for exclusive mappings 2024-08-19 05:41:02 +02:00
bluetooth Bluetooth: btusb: Fix not handling ZPL/short-transfer 2024-10-17 15:07:41 +02:00
bus bus: tegra-aconnect: Update dependency to ARCH_TEGRA 2024-03-26 18:21:50 -04:00
cdrom
char tpm: Clean up TPM space after command failure 2024-10-17 15:07:48 +02:00
clk clk: rockchip: Set parent rate for DCLK_VOP clock on RK3228 2024-10-17 15:07:52 +02:00
clocksource clocksource/drivers/qcom: Add missing iounmap() on errors in msm_dt_timer_init() 2024-10-17 15:07:44 +02:00
connector
counter counter: ti-eqep: enable clock at probe 2024-07-05 09:12:51 +02:00
cpufreq cpufreq: ti-cpufreq: Introduce quirks to handle syscon fails appropriately 2024-10-17 15:07:40 +02:00
cpuidle
crypto crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak 2024-06-16 13:32:34 +02:00
dax
dca
devfreq PM / devfreq: Fix buffer overflow in trans_stat_show 2024-05-02 16:23:44 +02:00
dio
dma dmaengine: dw: Add memory bus width verification 2024-09-04 13:17:46 +02:00
dma-buf dma-buf: heaps: Fix off-by-one in CMA heap fault handler 2024-10-17 15:07:34 +02:00
edac EDAC, i10nm: make skx_common.o a separate module 2024-08-19 05:40:40 +02:00
eisa
extcon extcon: max8997: select IRQ_DOMAIN instead of depending on it 2024-06-16 13:32:20 +02:00
firewire firewire: nosy: ensure user_length is taken into account when fetching packet contents 2024-05-17 11:48:08 +02:00
firmware firmware: turris-mox-rwtm: Initialize completion before mailbox 2024-08-19 05:40:44 +02:00
fpga fpga: region: add owner module and take its refcount 2024-06-16 13:32:19 +02:00
fsi
gnss
gpio gpiolib: cdev: Ignore reconfiguration without direction 2024-10-17 15:07:37 +02:00
gpu drivers:drm:exynos_drm_gsc:Fix wrong assignment in gsc_bind() 2024-10-17 15:07:48 +02:00
greybus greybus: Fix use-after-free bug in gb_interface_release due to race condition. 2024-07-05 09:12:32 +02:00
hid HID: cougar: fix slab-out-of-bounds Read in cougar_report_fixup 2024-09-12 11:06:49 +02:00
hsi
hv Drivers: hv: vmbus: Fix rescind handling in uio_hv_generic 2024-09-12 11:06:50 +02:00
hwmon hwmon: (ntc_thermistor) fix module autoloading 2024-10-17 15:07:45 +02:00
hwspinlock hwspinlock: Introduce hwspin_lock_bust() 2024-09-12 11:06:41 +02:00
hwtracing coresight: Fix ref leak when of_coresight_parse_endpoint() fails 2024-08-19 05:40:51 +02:00
i2c i2c: Add i2c_get_match_data() 2024-10-17 15:07:44 +02:00
i3c i3c: master: cdns: Update maximum prescaler value for i2c clock 2024-02-23 08:42:13 +01:00
ide
idle
iio iio: adc: ad7124: fix chip ID mismatch 2024-09-12 11:06:50 +02:00
infiniband IB/hfi1: Fix potential deadlock on &irq_src_lock and &dd->uctxt_lock 2024-09-04 13:17:34 +02:00
input Input: i8042 - add Fujitsu Lifebook E756 to i8042 quirk table 2024-10-17 15:07:32 +02:00
interconnect interconnect: Treat xlate() returning NULL node as an error 2024-01-05 15:12:26 +01:00
iommu iommu/vt-d: Handle volatile descriptor status read 2024-09-12 11:06:47 +02:00
ipack
irqchip irqchip/armada-370-xp: Do not allow mapping IRQ 0 and 1 2024-09-12 11:06:45 +02:00
isdn mISDN: Fix a use after free in hfcmulti_tx() 2024-08-19 05:41:05 +02:00
leds leds: spi-byte: Call of_node_put() on error path 2024-09-12 11:06:46 +02:00
lightnvm
macintosh macintosh/therm_windtunnel: fix module unload. 2024-08-19 05:40:52 +02:00
mailbox mailbox: imx: fix suspend failue 2024-05-02 16:23:35 +02:00
mcb mcb: fix error handling for different scenarios when parsing 2023-11-28 16:54:58 +00:00
md dm init: Handle minors larger than 255 2024-09-12 11:06:47 +02:00
media drivers: media: dvb-frontends/rtl2830: fix an out-of-bounds write error 2024-10-17 15:07:52 +02:00
memory memory: stm32-fmc2-ebi: check regmap_read return value 2024-09-04 13:17:36 +02:00
memstick
message
mfd mfd: omap-usb-tll: Use struct_size to allocate tll 2024-08-19 05:40:50 +02:00
misc VMCI: Fix use-after-free when removing resource in vmci_resource_remove() 2024-09-12 11:06:50 +02:00
mmc mmc: cqhci: Fix checking of CQHCI_HALT state 2024-09-12 11:06:51 +02:00
most
mtd mtd: powernv: Add check devm_kasprintf() returned value 2024-10-17 15:07:45 +02:00
mux
net r8169: disable ALDPS per default for RTL8125 2024-10-17 15:07:42 +02:00
nfc nfc: pn533: Add poll mod list filling check 2024-09-04 13:17:46 +02:00
ntb ntb: Fix calculation ntb_transport_tx_free_entry() 2023-09-19 12:20:22 +02:00
nubus
nvdimm nd_btt: Make BTT lanes preemptible 2023-11-20 11:06:50 +01:00
nvme nvmet-tcp: fix kernel crash if commands allocation fails 2024-09-12 11:06:51 +02:00
nvmem nvmem: Fix return type of devm_nvmem_device_get() in kerneldoc 2024-09-12 11:06:50 +02:00
of of/irq: Prevent device address out-of-bounds read in interrupt map walk 2024-09-12 11:06:49 +02:00
opp OPP: debugfs: Fix warning around icc_get_name() 2024-03-26 18:21:53 -04:00
oprofile
parisc parisc: iosapic.c: Fix sparse warnings 2023-10-10 21:53:32 +02:00
parport dev/parport: fix the array out-of-bounds risk 2024-08-19 05:40:59 +02:00
pci PCI: keystone: Fix if-statement expression in ks_pcie_quirk() 2024-10-17 15:07:52 +02:00
pcmcia pcmcia: Use resource_size function on resource object 2024-09-12 11:06:46 +02:00
perf perf/arm-cmn: Fix the unhandled overflow status of counter 4 to 7 2023-10-25 11:54:13 +02:00
phy phy: tegra: xusb: Add API to retrieve the port number of phy 2024-04-13 12:58:29 +02:00
pinctrl pinctrl: at91: make it work with current gpiolib 2024-10-17 15:07:35 +02:00
platform platform/x86: dell-smbios: Fix error path in dell_smbios_init() 2024-09-12 11:06:46 +02:00
pnp PNP: ACPI: fix fortify warning 2024-02-23 08:42:03 +01:00
power power: supply: max17042_battery: Fix SOC threshold calc w/ no current sense 2024-10-17 15:07:45 +02:00
powercap
pps
ps3
ptp ptp: Fix error message on failed pin verification 2024-07-05 09:12:22 +02:00
pwm pwm: stm32: Always do lazy disabling 2024-08-19 05:40:41 +02:00
rapidio
ras
regulator regulator: core: Fix modpost error "regulator_get_regmap" undefined 2024-07-05 09:12:39 +02:00
remoteproc remoteproc: imx_rproc: Skip over memory region when node value is NULL 2024-08-19 05:41:08 +02:00
reset reset: berlin: fix OF node leak in probe() error path 2024-10-17 15:07:44 +02:00
rpmsg rpmsg: virtio: Free driver_override when rpmsg_remove() 2024-02-23 08:41:53 +01:00
rtc rtc: isl1208: Fix return value of nvmem callbacks 2024-08-19 05:41:01 +02:00
s390 s390/cio: rename bitmap_size() -> idset_bitmap_size() 2024-09-04 13:17:31 +02:00
sbus
scsi scsi: aacraid: Fix double-free on probe failure 2024-09-04 13:17:47 +02:00
sfi
sh
siox
slimbus slimbus: core: Remove usage of the deprecated ida_simple_xx() API 2024-04-13 12:58:29 +02:00
soc soc: qcom: cmd-db: Map shared memory as WC, not WB 2024-09-04 13:17:46 +02:00
soundwire soundwire: stream: Revert "soundwire: stream: fix programming slave ports for non-continous port maps" 2024-10-17 15:07:34 +02:00
spi spi: ppc4xx: Avoid returning 0 when failed to parse and map IRQ 2024-10-17 15:07:43 +02:00
spmi
ssb ssb: Fix division by zero issue in ssb_calc_clock_rate 2024-09-04 13:17:32 +02:00
staging minmax: reduce min/max macro expansion in atomisp driver 2024-10-17 15:07:32 +02:00
target scsi: target: Fix SELinux error when systemd-modules loads the target module 2024-05-17 11:48:04 +02:00
tc
tee tee: optee: Fix kernel panic caused by incorrect error handling 2024-04-13 12:58:53 +02:00
thermal thermal: core: prevent potential string overflow 2023-11-20 11:06:45 +01:00
thunderbolt thunderbolt: Mark XDomain as unplugged when router is removed 2024-09-04 13:17:29 +02:00
tty serial: core: check uartclk for zero to avoid divide by zero 2024-08-19 05:41:19 +02:00
uio Drivers: hv: vmbus: Fix rescind handling in uio_hv_generic 2024-09-12 11:06:50 +02:00
usb USB: usbtmc: prevent kernel-usb-infoleak 2024-10-17 15:07:38 +02:00
vdpa
vfio vfio/fsl-mc: Block calling interrupt handler without trigger 2024-04-13 12:59:21 +02:00
vhost vhost-vdpa: switch to use vmf_insert_pfn() in the fault handler 2024-08-19 05:41:23 +02:00
video fbdev: hpfb: Fix an error handling path in hpfb_dio_probe() 2024-10-17 15:07:45 +02:00
virt
virtio virtio: delete vq in vp_find_vqs_msix() when request_irq() fails 2024-06-16 13:32:27 +02:00
visorbus
vlynq
vme
w1
watchdog watchdog: rti_wdt: Set min_hw_heartbeat_ms to accommodate a safety margin 2024-06-16 13:32:35 +02:00
xen xen/swiotlb: add alignment check for dma buffers 2024-10-17 15:07:48 +02:00
zorro
Kconfig
Makefile