xfs
[Top] [All Lists]

[PATCH] xfs: Use kmem_free() instead of free()

To: Ben Myers <bpm@xxxxxxx>, Alex Elder <elder@xxxxxxxxxx>
Subject: [PATCH] xfs: Use kmem_free() instead of free()
From: Thierry Reding <thierry.reding@xxxxxxxxx>
Date: Tue, 1 Oct 2013 16:47:53 +0200
Cc: xfs@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=4Gg1j4YsCqlBhuaguyzl2n2BMClXRcU1jVEG/nmUv3I=; b=rWO3lB0t4QmfykkvcSowFBj5KQc5og1PmkvVQ+0aP0GnmqHlQtGAft/rWAXsHTTaBh fcWxGIsl2DvpQ3QTqe0/89+ehZK9eS1QS8aOwkKBdY9jO1EoclQLDklVgydMOYsNpZgh QersdmUYcMjO1tRZGHop5qcSyPsoSMuVxEDz5zhlKQznAFD57X+EOuwmWWeO2BDetbix +DImdRMzN1VL/eayM//DM9nPKc4CD4Y/654+BQWoyRGB1n57YcDFLkq+tOTmOpzA/HkM MKoKBPPqtDxJdod2LSq0vpiw80VJfoIJxb24NxsABuG2lC4whfj5iBQ1DWhgmSVqK+Xw ZEgA==
This fixes a build failure caused by calling the free() function which
does not exist in the Linux kernel.

Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
---
 fs/xfs/xfs_log_recover.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index 4324058..3979749 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -1585,7 +1585,7 @@ xlog_recover_add_to_trans(
                "bad number of regions (%d) in inode log format",
                                  in_f->ilf_size);
                        ASSERT(0);
-                       free(ptr);
+                       kmem_free(ptr);
                        return XFS_ERROR(EIO);
                }
 
-- 
1.8.4

<Prev in Thread] Current Thread [Next in Thread>