Btrfs: Fix use after free during compressed reads
authorChris Mason <chris.mason@oracle.com>
Mon, 10 Nov 2008 16:44:58 +0000 (11:44 -0500)
committerChris Mason <chris.mason@oracle.com>
Mon, 10 Nov 2008 16:44:58 +0000 (11:44 -0500)
commite04ca626baee684bea9d6239e4e1119b696101b2
treef5327eae3e8393f19ef9f40426efb8b3488f36f6
parentff5b7ee33d82414bf4baf299c21fb703bcc89629
Btrfs: Fix use after free during compressed reads

Yan's fix to use the correct file offset during compressed reads used the
extent_map struct pointer after it had been freed.  This saves the
fields we want for later use instead.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/compression.c