umber-kernel/include
Hans de Goede 0a08a7fa12 fbdev: Use device_create_with_groups() to fix sysfs groups registration race
[ Upstream commit 68eeb0871e986ae5462439dae881e3a27bcef85f ]

The fbdev sysfs attributes are registered after sending the uevent for
the device creation, leaving a race window where e.g. udev rules may
not be able to access the sysfs attributes because the registration is
not done yet.

Fix this by switching to device_create_with_groups(). This also results in
a nice cleanup. After switching to device_create_with_groups() all that
is left of fb_init_device() is setting the drvdata and that can be passed
to device_create[_with_groups]() too. After which fb_init_device() can
be completely removed.

Dropping fb_init_device() + fb_cleanup_device() in turn allows removing
fb_info.class_flag as they were the only user of this field.

Fixes: 5fc830d6ac ("fbdev: Register sysfs groups through device_add_group")
Cc: stable@vger.kernel.org
Cc: Shixiong Ou <oushixiong@kylinos.cn>
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:21:31 -05:00
..
acpi APEI/GHES: ensure that won't go past CPER allocated record 2026-03-04 07:19:35 -05:00
asm-generic audit: add missing syscalls to read class 2026-03-04 07:19:29 -05:00
clocksource
crypto
cxl
drm drm: of: drm_of_panel_bridge_remove(): fix device_node leak 2026-03-04 07:21:10 -05:00
dt-bindings
hyperv
keys
kunit
kvm
linux fbdev: Use device_create_with_groups() to fix sysfs groups registration race 2026-03-04 07:21:31 -05:00
math-emu
media media: dvb-core: dmxdevfilter must always flush bufs 2026-03-04 07:19:49 -05:00
memory
misc
net ipv6: ioam: fix heap buffer overflow in __ioam6_fill_trace_data() 2026-03-04 07:21:30 -05:00
pcmcia
ras
rdma RDMA/core: add rdma_rw_max_sge() helper for SQ sizing 2026-02-26 14:59:27 -08:00
rv
scsi
soc
sound ASoC: SDCA: Force some SDCA Controls to be volatile 2026-02-26 14:59:15 -08:00
target
trace
uapi include: uapi: netfilter_bridge.h: Cover for musl libc 2026-03-04 07:20:39 -05:00
ufs scsi: ufs: host: mediatek: Require CONFIG_PM 2026-02-26 14:59:27 -08:00
vdso
video
xen Partial revert "x86/xen: fix balloon target initialization for PVH dom0" 2026-02-26 14:59:01 -08:00
Kbuild