]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fbdev: efifb: Register sysfs groups through driver core
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 27 Aug 2024 15:25:13 +0000 (17:25 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 30 Aug 2024 16:42:38 +0000 (18:42 +0200)
commit95cdd538e0e5677efbdf8aade04ec098ab98f457
treeb5f40767e9b81f75e66d33b3f6dd116fc871abec
parent929c81ade6355b87097a2a4886c10750e68626cf
fbdev: efifb: Register sysfs groups through driver core

The driver core can register and cleanup sysfs groups already.
Make use of that functionality to simplify the error handling and
cleanup.

Also avoid a UAF race during unregistering where the sysctl attributes
were usable after the info struct was freed.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/efifb.c