public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs: fix freeing memory in xfs_getbmap()
@ 2009-06-11 22:16 Felix Blyakher
  2009-06-11 23:19 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Blyakher @ 2009-06-11 22:16 UTC (permalink / raw)
  To: xfs; +Cc: Hedi Berriche

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>
---
 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.5.4.rc3

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] xfs: fix freeing memory in xfs_getbmap()
  2009-06-11 22:16 [PATCH] xfs: fix freeing memory in xfs_getbmap() Felix Blyakher
@ 2009-06-11 23:19 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2009-06-11 23:19 UTC (permalink / raw)
  To: Felix Blyakher; +Cc: Hedi Berriche, xfs

On Thu, Jun 11, 2009 at 05:16:25PM -0500, Felix Blyakher wrote:
> Regression from commit 28e211700a81b0a934b6c7a4b8e7dda843634d2f.
> Need to free temporary buffer allocated in xfs_getbmap().

Defintively need to free it.  Not sure where it got lost from my initial
patch to the one that got merged, sorry.

Reviewed-by: Christoph Hellwig <hch@lst.de>

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-11 23:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11 22:16 [PATCH] xfs: fix freeing memory in xfs_getbmap() Felix Blyakher
2009-06-11 23:19 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox