xfs: Use kmem_free() instead of free()
authorThierry Reding <thierry.reding@gmail.com>
Tue, 1 Oct 2013 14:47:53 +0000 (16:47 +0200)
committerBen Myers <bpm@sgi.com>
Tue, 1 Oct 2013 15:26:24 +0000 (10:26 -0500)
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@nvidia.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_log_recover.c

index 43240583fd5b3d8d13b1594e2ca54f3204090d56..39797490a1f1996e3f92f51efb532f15a75da8fa 100644 (file)
@@ -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);
                }