diff options
author | 2021-05-12 14:07:57 -0400 | |
---|---|---|
committer | 2023-10-22 17:09:03 -0400 | |
commit | ec4ab9d2fc08132113dc5d45ac68af2158377122 (patch) | |
tree | ef2e47944861262ebd83b07ada714d35f6903e17 /fs/bcachefs/chardev.c | |
parent | bcachefs: Fix error in parsing of mount options (diff) | |
download | wireguard-linux-ec4ab9d2fc08132113dc5d45ac68af2158377122.tar.xz wireguard-linux-ec4ab9d2fc08132113dc5d45ac68af2158377122.zip |
bcachefs: Fix possible null deref on mount
Ensure that the block device pointer in a superblock handle is not
null before dereferencing it in bch2_dev_to_fs. The block device pointer
may be null when mounting a new bcachefs filesystem given another mounted
bcachefs filesystem exists that has at least one device that is offline.
Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/chardev.c')
0 files changed, 0 insertions, 0 deletions