Files
linux-stable-mirror/include/linux
Hans de Goede 68eeb0871e fbdev: Use device_create_with_groups() to fix sysfs groups registration race
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>
2026-02-14 11:07:12 +01:00
..
2026-02-11 13:44:47 +01:00
2026-01-29 20:21:41 +01:00
2026-01-27 15:31:42 +01:00
2026-01-31 13:51:04 -08:00
2026-02-06 07:29:14 -07:00
2026-01-26 19:03:47 -08:00
2026-01-26 20:02:27 -08:00
2026-01-30 11:34:34 +00:00
2026-01-27 09:11:30 -08:00
2026-01-31 14:22:57 -08:00
2026-02-04 13:22:39 -08:00
2026-01-30 18:26:59 -08:00