Commit c06a8b7
Kent Overstreet
bcachefs: Fix bch2_alloc_ciphers()
Don't put error pointers in bch_fs, that's gross.
This fixes (?) the check in bch2_checksum_type_valid() - depending on
our error paths, or depending on what our error paths are doing it at
least makes the code saner.
Reported-by: syzbot+2e3cb81b5d1fe18a374b@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>1 parent 6d48e61 commit c06a8b7
1 file changed
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
| 651 | + | |
| 652 | + | |
656 | 653 | | |
| 654 | + | |
| 655 | + | |
657 | 656 | | |
658 | 657 | | |
659 | 658 | | |
660 | 659 | | |
661 | 660 | | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
| 661 | + | |
| 662 | + | |
666 | 663 | | |
667 | 664 | | |
| 665 | + | |
668 | 666 | | |
669 | 667 | | |
670 | 668 | | |
| 669 | + | |
| 670 | + | |
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
765 | | - | |
| 765 | + | |
766 | 766 | | |
767 | | - | |
| 767 | + | |
768 | 768 | | |
769 | | - | |
| 769 | + | |
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| 782 | + | |
782 | 783 | | |
783 | 784 | | |
784 | 785 | | |
| |||
0 commit comments