diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-21 23:21:52 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-22 02:07:23 -0400 |
commit | 0b50b7313ef2494926df30ce8e2ce284f1b847fc (patch) | |
tree | e31051c61b62529648baeabfb05d543268dc5fba /drivers/fpga/fpga-mgr.c | |
parent | 8ed823b19214e403ca485532f48c0e02035021ae (diff) |
bcachefs: Fix refcounting in discard path
bch_dev->io_ref does not protect against the filesystem going away;
bch_fs->writes does.
Thus the filesystem write ref needs to be the last ref we release.
Reported-by: syzbot+9e0404b505e604f67e41@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions