mirror-linux/drivers
Liu Ying db7e7ea838 drm/bridge: imx8qxp-pxl2dpi: Fix NULL pointer dereference in imx8qxp_pxl2dpi_bridge_destroy()
Pointer bridge->driver_private in imx8qxp_pxl2dpi_bridge_destroy()
is NULL when imx8qxp_pxl2dpi_bridge_probe() returns error, because
the pointer is initialized only when imx8qxp_pxl2dpi_bridge_probe()
returns 0.  The NULL pointer would be set to pointer p2d and then
NULL pointer p2d would be dereferenced.  Fix this by returning early
from imx8qxp_pxl2dpi_bridge_destroy() if !p2d is true.

Fixes: 900699ba83 ("drm/bridge: imx8qxp-pxl2dpi: get/put the companion bridge")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260123-imx8qxp-drm-bridge-fixes-v1-2-8bb85ada5866@nxp.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
2026-01-27 12:22:22 +01:00
..
accel drm-misc-next for 6.20: 2026-01-16 11:04:03 +10:00
accessibility
acpi ACPI: PCC: Fix race condition by removing static qualifier 2025-12-15 13:00:33 +01:00
amba
android
ata ata: libata-core: Disable LPM on ST2000DM008-2FR102 2025-12-16 14:23:10 +09:00
atm
auxdisplay
base PM: runtime: Do not clear needs_force_resume with enabled runtime PM 2025-12-16 12:58:57 +01:00
bcma
block block-6.19-20251218 2025-12-20 09:48:56 -08:00
bluetooth
bus
cache
cdrom
cdx
char
clk
clocksource
comedi
connector
counter
cpufreq cpufreq: dt-platdev: Fix creating device on OPPv1 platforms 2025-12-16 07:59:30 -06:00
cpuidle
crypto host1x: Make remove callback return void 2026-01-13 12:25:38 +01:00
cxl
dax
dca
devfreq
dibs
dio
dma
dma-buf dma-buf: add some tracepoints to debug. 2026-01-21 13:27:54 +01:00
dpll
edac
eisa
extcon
firewire
firmware
fpga
fsi
fwctl
gnss
gpib
gpio
gpu drm/bridge: imx8qxp-pxl2dpi: Fix NULL pointer dereference in imx8qxp_pxl2dpi_bridge_destroy() 2026-01-27 12:22:22 +01:00
greybus
hid Input updates for v6.19-rc1 2025-12-21 15:21:10 -08:00
hsi
hte
hv
hwmon hwmon: (ltc4282): Fix reset_history file permissions 2025-12-19 08:44:22 -08:00
hwspinlock
hwtracing
i2c i2c: i801: Add support for Intel Nova Lake-S 2025-12-17 00:28:51 +01:00
i3c
idle
iio
infiniband
input Input updates for v6.19-rc1 2025-12-21 15:21:10 -08:00
interconnect
iommu Miscellaneous x86 fixes: 2025-12-21 14:41:29 -08:00
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc lkdtm/bugs: Do not confuse the clang/objtool with busy wait loop 2025-12-19 15:09:09 +00:00
mmc mmc: sdhci-esdhc-imx: add alternate ARCH_S32 dependency to Kconfig 2025-12-17 14:14:51 +01:00
most
mtd
mux
net Including fixes from netfilter and CAN. 2025-12-19 07:55:35 +12:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of arm64: kdump: Fix elfcorehdr overlap caused by reserved memory processing reorder 2025-12-16 07:59:30 -06:00
opp
parisc
parport
pci
pcmcia
peci
perf
phy
pinctrl
platform
pmdomain
pnp
power
powercap powercap: intel_rapl: Fix possible recursive lock warning 2025-12-17 17:24:28 +01:00
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
resctrl
reset
rpmsg
rtc
s390
sbus
scsi
sh
siox
slimbus
soc
soundwire
spi spi: cadence-quadspi: Fix probe error path and logging 2025-12-18 08:34:00 +00:00
spmi
ssb
staging host1x: Make remove callback return void 2026-01-13 12:25:38 +01:00
target
tc
tee
thermal thermal: core: Fix typo and indentation in comments 2025-12-15 12:47:39 +01:00
thunderbolt
tty vt: Remove con_debug_enter/_leave from struct consw 2025-12-21 18:24:53 +01:00
ufs
uio
usb
vdpa
vfio
vhost
video drm-misc-next for 6.19: 2025-12-26 18:15:33 +10:00
virt
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile