Commit 36bfefb
fbdev: efifb: Register sysfs groups through driver core
[ Upstream commit 95cdd53 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 4b101d2 commit 36bfefb
1 file changed
+2
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | 574 | | |
580 | 575 | | |
581 | 576 | | |
582 | | - | |
| 577 | + | |
583 | 578 | | |
584 | 579 | | |
585 | 580 | | |
| |||
603 | 598 | | |
604 | 599 | | |
605 | 600 | | |
606 | | - | |
607 | | - | |
608 | 601 | | |
609 | 602 | | |
610 | 603 | | |
| |||
624 | 617 | | |
625 | 618 | | |
626 | 619 | | |
627 | | - | |
628 | 620 | | |
629 | 621 | | |
630 | 622 | | |
631 | 623 | | |
632 | 624 | | |
| 625 | + | |
633 | 626 | | |
634 | 627 | | |
635 | 628 | | |
| |||
0 commit comments