xfs: Don't reference the EFI after it is freed
authorDave Chinner <dchinner@redhat.com>
Sun, 19 May 2013 23:51:10 +0000 (09:51 +1000)
committerBen Myers <bpm@sgi.com>
Mon, 20 May 2013 19:29:34 +0000 (14:29 -0500)
commit52c24ad39ff02d7bd73c92eb0c926fb44984a41d
tree66a033ff6538570691dc60957564e3c4f9de38fe
parent28ca489c63e9aceed8801d2f82d731b3c9aa50f5
xfs: Don't reference the EFI after it is freed

Checking the EFI for whether it is being released from recovery
after we've already released the known active reference is a mistake
worthy of a brown paper bag. Fix the (now) obvious use after free
that it can cause.

Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_extfree_item.c