summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorFelix Blyakher <felixb@sgi.com>2009-06-11 17:07:28 -0500
committerFelix Blyakher <felixb@sgi.com>2009-06-12 10:26:52 -0500
commit7747a0b0af5976ba3828796b4f7a7adc3bb76dbd (patch)
treecf56450f057c3045341fe50c4e865466ee8a4522 /fs
parent35fd035968de4f674b9d62ee7b1d80ab7a50c384 (diff)
downloadlinux-3.10-7747a0b0af5976ba3828796b4f7a7adc3bb76dbd.tar.gz
linux-3.10-7747a0b0af5976ba3828796b4f7a7adc3bb76dbd.tar.bz2
linux-3.10-7747a0b0af5976ba3828796b4f7a7adc3bb76dbd.zip
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 <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>
Diffstat (limited to 'fs')
-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 4b0f6efb046..7928b9983c1 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;
}