summaryrefslogtreecommitdiffstats
path: root/patches/bugfix/all/0001-xfs-fix-freeing-memory-in-xfs_getbmap.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/bugfix/all/0001-xfs-fix-freeing-memory-in-xfs_getbmap.patch')
-rw-r--r--patches/bugfix/all/0001-xfs-fix-freeing-memory-in-xfs_getbmap.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/bugfix/all/0001-xfs-fix-freeing-memory-in-xfs_getbmap.patch b/patches/bugfix/all/0001-xfs-fix-freeing-memory-in-xfs_getbmap.patch
new file mode 100644
index 0000000..8242cf0
--- /dev/null
+++ b/patches/bugfix/all/0001-xfs-fix-freeing-memory-in-xfs_getbmap.patch
@@ -0,0 +1,32 @@
+From 7747a0b0af5976ba3828796b4f7a7adc3bb76dbd Mon Sep 17 00:00:00 2001
+From: Felix Blyakher <felixb@sgi.com>
+Date: Thu, 11 Jun 2009 17:07:28 -0500
+Subject: [PATCH] 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>
+---
+ fs/xfs/xfs_bmap.c | 1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
+index 4b0f6ef..7928b99 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;
+ }
+
+--
+1.6.3.1
+