summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Blyakher <felixb@sgi.com>2009-06-11 17:07:28 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-07-02 16:51:07 -0700
commit6e9b0f6d101c80eb88a648d6746031ca77043043 (patch)
treed1c1182e82b9c31ce15c6070cc9bfa9a490e0622
parente1b41bb33a93eb3071c27db2c7313d72c5f2500c (diff)
xfs: fix freeing memory in xfs_getbmap()
commit 7747a0b0af5976ba3828796b4f7a7adc3bb76dbd upstream. Regression from commit 28e211700a81b0a934b6c7a4b8e7dda843634d2f. Need to free temporary buffer allocated in xfs_getbmap(). Signed-off-by: Felix Blyakher <felixb@sgi.com> Signed-off-by: Hedi Berriche <hedi@sgi.com> Reported-by: Justin Piszcz <jpiszcz@lucidpixels.com> Reviewed-by: Eric Sandeen <sandeen@sandeen.net> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--fs/xfs/xfs_bmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
index ca7c6005a487..b5cba9881eee 100644
--- a/fs/xfs/xfs_bmap.c
+++ b/fs/xfs/xfs_bmap.c
@@ -6085,6 +6085,7 @@ xfs_getbmap(
break;
}
+ kmem_free(out);
return error;
}