From: Felix Blyakher Date: Thu, 11 Jun 2009 22:07:28 +0000 (-0500) Subject: xfs: fix freeing memory in xfs_getbmap() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7747a0b0af5976ba3828796b4f7a7adc3bb76dbd;p=openwrt%2Fstaging%2Fblogic.git xfs: fix freeing memory in xfs_getbmap() Regression from commit 28e211700a81b0a934b6c7a4b8e7dda843634d2f. Need to free temporary buffer allocated in xfs_getbmap(). Signed-off-by: Felix Blyakher Signed-off-by: Hedi Berriche Reported-by: Justin Piszcz Reviewed-by: Eric Sandeen Reviewed-by: Christoph Hellwig --- diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 4b0f6efb046c..7928b9983c1d 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c @@ -6086,6 +6086,7 @@ xfs_getbmap( break; } + kmem_free(out); return error; }