diff options
author | 2023-09-13 18:44:08 +0200 | |
---|---|---|
committer | 2023-10-22 17:10:13 -0400 | |
commit | 71933fb69b7c5fe5efd2119b645d4fde337a6f3f (patch) | |
tree | 46f165913e66c9d88424e45e30ffe3483496dc3d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bcachefs: add module description to fix modpost warning (diff) | |
download | wireguard-linux-71933fb69b7c5fe5efd2119b645d4fde337a6f3f.tar.xz wireguard-linux-71933fb69b7c5fe5efd2119b645d4fde337a6f3f.zip |
bcachefs: Fix use-after-free in bch2_dev_add()
If __bch2_dev_attach_bdev() fails, bch2_dev_free() is called twice.
Once here and another time in the error handling path.
This leads to several use-after-free.
Remove the redundant call and only rely on the error handling path.
Fixes: 6a44735653d4 ("bcachefs: Improved superblock-related error messages")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions