]> www.infradead.org Git - users/hch/xfs.git/commit
bcachefs: fix incorrect pointer check in __bch2_subvolume_delete()
authorJeongjun Park <aha310510@gmail.com>
Fri, 31 Jan 2025 16:20:31 +0000 (01:20 +0900)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 7 Feb 2025 03:35:11 +0000 (22:35 -0500)
commit6b37037d6d1b42083642340efcf80f7a30203039
tree0c0d64b65e15b5633a143d0e6ad3154e79d7a9c7
parentfdfd0ad82890f678398ee670c4e59747738540e7
bcachefs: fix incorrect pointer check in __bch2_subvolume_delete()

For some unknown reason, checks on struct bkey_s_c_snapshot and struct
bkey_s_c_snapshot_tree pointers are missing.

Therefore, I think it would be appropriate to fix the incorrect pointer checking
through this patch.

Fixes: 4bd06f07bcb5 ("bcachefs: Fixes for snapshot_tree.master_subvol")
Signed-off-by: Jeongjun Park <aha310510@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/subvolume.c