mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 00:28:54 +02:00
bochs_pci_probe() allocates the DRM device with devm_drm_dev_alloc(),
which registers a devres action to drop the initial DRM device reference
on driver detach or probe failure.
The error path currently calls drm_dev_put() manually. If probe then
returns an error, devres will run the registered release action and put
the same device again, after the first put may already have released it.
Return the probe error directly and let devres own the final put.
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Fixes:
|
||
|---|---|---|
| .. | ||
| appletbdrm.c | ||
| arcpgu.c | ||
| bochs.c | ||
| cirrus-qemu.c | ||
| gm12u320.c | ||
| hx8357d.c | ||
| ili9163.c | ||
| ili9225.c | ||
| ili9341.c | ||
| ili9486.c | ||
| Kconfig | ||
| Makefile | ||
| mi0283qt.c | ||
| panel-mipi-dbi.c | ||
| pixpaper.c | ||
| repaper.c | ||
| sharp-memory.c | ||