aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorMark Harmstone <[email protected]>2025-03-11 16:39:25 +0000
committerDavid Sterba <[email protected]>2025-03-18 19:35:54 +0000
commit9db9c7dd5b4e1d3205137a094805980082c37716 (patch)
tree84925175a478acb504b0cc09bb743f853e0cce77 /fs/btrfs/tree-log.c
parentbtrfs: prepare btrfs_page_mkwrite() for large folios (diff)
downloadkernel-9db9c7dd5b4e1d3205137a094805980082c37716.tar.gz
kernel-9db9c7dd5b4e1d3205137a094805980082c37716.zip
btrfs: don't clobber ret in btrfs_validate_super()
Commit 2a9bb78cfd36 ("btrfs: validate system chunk array at btrfs_validate_super()") introduces a call to validate_sys_chunk_array() in btrfs_validate_super(), which clobbers the value of ret set earlier. This has the effect of negating the validity checks done earlier, making it so btrfs could potentially try to mount invalid filesystems. Fixes: 2a9bb78cfd36 ("btrfs: validate system chunk array at btrfs_validate_super()") Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Mark Harmstone <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions