linux/drivers/gpu/drm/tiny
Myeonghun Pak b15838b03c drm/bochs: Drop manual put on probe error path
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: 04826f5886 ("drm/bochs: Allocate DRM device in struct bochs_device")
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260424123506.32275-1-mhun512@gmail.com
2026-05-07 10:51:18 +02:00
..
appletbdrm.c drm/appletbdrm: Use kvzalloc for big allocations 2026-04-27 11:33:01 +02:00
arcpgu.c drm/arcpgu: fix device node leak 2026-04-14 11:21:48 +02:00
bochs.c drm/bochs: Drop manual put on probe error path 2026-05-07 10:51:18 +02:00
cirrus-qemu.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
gm12u320.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
hx8357d.c drm/hx8357d: Use regular atomic helpers; drop simple-display helpers 2026-03-25 15:04:41 +01:00
ili9163.c drm/ili9163: Use regular atomic helpers; drop simple-display helpers 2026-03-25 15:04:44 +01:00
ili9225.c drm/ili9225: Use regular atomic helpers; drop simple-display helpers 2026-03-25 15:04:47 +01:00
ili9341.c drm/ili9341: Use regular atomic helpers; drop simple-display helpers 2026-03-25 15:04:52 +01:00
ili9486.c drm/ili9486: Use regular atomic helpers; drop simple-display helpers 2026-03-25 15:04:55 +01:00
Kconfig drm/tiny: pixpaper: add explicit dependency on MMU 2025-11-06 13:47:29 +01:00
Makefile drm: tiny: Add support for Mayqueen Pixpaper e-ink panel 2025-09-05 14:53:07 +02:00
mi0283qt.c drm/mi0283qt: Use regular atomic helpers; drop simple-display helpers 2026-03-25 15:04:58 +01:00
panel-mipi-dbi.c drm/panel-mipi-dbi: Use regular atomic helpers; drop simple-display helpers 2026-03-25 15:05:02 +01:00
pixpaper.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
repaper.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
sharp-memory.c drm/tiny: sharp-memory: fix pointer error dereference 2026-02-17 10:04:28 +01:00