summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/bset.h
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2024-04-12 14:36:38 +0800
committerKent Overstreet <kent.overstreet@linux.dev>2024-04-15 13:31:15 -0400
commit3078e059a5e984663c5c2b04485375c84c2700f9 (patch)
treeac15378e83c7da7c6143427915a74fb76f549c04 /fs/bcachefs/bset.h
parentf0a73d4fde5b285d94a702026216d9fd1fd2733d (diff)
downloadlinux-stable-3078e059a5e984663c5c2b04485375c84c2700f9.tar.gz
linux-stable-3078e059a5e984663c5c2b04485375c84c2700f9.tar.bz2
linux-stable-3078e059a5e984663c5c2b04485375c84c2700f9.zip
bcachefs: fix error path of __bch2_read_super()
In __bch2_read_super(), if kstrdup() fails, it needs to release memory in sb->holder, fix to call bch2_free_super() in the error path. Signed-off-by: Chao Yu <chao@kernel.org> Reviewed-by: Hongbo Li <lihongbo22@huawei.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bset.h')
0 files changed, 0 insertions, 0 deletions