Skip to content
Snippets Groups Projects
Commit a6b0d5c8 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: make sure we update latest_bdev


When we are setting up the mount, we close all the
devices that were not actually part of the metadata we found.

But, we don't make sure that one of those devices wasn't
fs_devices->latest_bdev, which means we can do a use after free
on the one we closed.

This updates latest_bdev as it goes.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent fe66a05a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment