Commit 95cdd53
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 <[email protected]>
Signed-off-by: Helge Deller <[email protected]>1 parent 929c81a commit 95cdd53
1 file changed
+2
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | 564 | | |
570 | 565 | | |
571 | 566 | | |
572 | | - | |
| 567 | + | |
573 | 568 | | |
574 | 569 | | |
575 | 570 | | |
| |||
587 | 582 | | |
588 | 583 | | |
589 | 584 | | |
590 | | - | |
591 | | - | |
592 | 585 | | |
593 | 586 | | |
594 | 587 | | |
| |||
608 | 601 | | |
609 | 602 | | |
610 | 603 | | |
611 | | - | |
612 | 604 | | |
613 | 605 | | |
614 | 606 | | |
615 | 607 | | |
616 | 608 | | |
| 609 | + | |
617 | 610 | | |
618 | 611 | | |
619 | 612 | | |
| |||
0 commit comments