This patch fixes a use-after-free bug, spotted by coverity, which
was recently introduced.
Red Hat File Systems
Signed-off-by: Bob Peterson <email@example.com>
Author: Bob Peterson <firstname.lastname@example.org>
Date: Fri Jan 6 16:42:27 2012 -0600
GFS2: Fix a use-after-free that coverity spotted
In function gfs2_inplace_release it was trying to unlock a gfs2_holder
structure associated with a reservation, after said reservation was
freed. The problem is that the statements have the wrong order.
This patch corrects the order so that the reservation is freed after
the gfs2_holder is unlocked.