From: Chris Mason Date: Tue, 21 Feb 2012 01:53:43 +0000 (-0500) Subject: Btrfs: make sure we update latest_bdev X-Git-Tag: v3.3-rc5~9^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6b0d5c8dbfd428717fc4db4c36757783f391c7b;p=pandora-kernel.git 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: Chris Mason --- Reading git-diff-tree failed