Commit a8d1b16
btrfs: zoned: initialize device's zone info for seeding
When performing seeding on a zoned filesystem it is necessary to
initialize each zoned device's btrfs_zoned_device_info structure,
otherwise mounting the filesystem will cause a NULL pointer dereference.
This was uncovered by fstests' testcase btrfs/163.
CC: [email protected] # 5.15+
Signed-off-by: Johannes Thumshirn <[email protected]>
Signed-off-by: David Sterba <[email protected]>1 parent 21e61ec commit a8d1b16
3 files changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2551 | 2551 | | |
2552 | 2552 | | |
2553 | 2553 | | |
2554 | | - | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
2555 | 2557 | | |
2556 | 2558 | | |
2557 | 2559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7756 | 7756 | | |
7757 | 7757 | | |
7758 | 7758 | | |
7759 | | - | |
| 7759 | + | |
7760 | 7760 | | |
7761 | 7761 | | |
7762 | 7762 | | |
| 7763 | + | |
7763 | 7764 | | |
7764 | 7765 | | |
7765 | 7766 | | |
| |||
7768 | 7769 | | |
7769 | 7770 | | |
7770 | 7771 | | |
7771 | | - | |
| 7772 | + | |
7772 | 7773 | | |
| 7774 | + | |
| 7775 | + | |
| 7776 | + | |
| 7777 | + | |
7773 | 7778 | | |
7774 | 7779 | | |
7775 | 7780 | | |
7776 | 7781 | | |
| 7782 | + | |
| 7783 | + | |
7777 | 7784 | | |
7778 | 7785 | | |
7779 | 7786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
| 674 | + | |
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| |||
0 commit comments