]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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>
Fri, 4 Oct 2013 18:56:12 +0000 (13:56 -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>
(cherry picked from commit aaaae98022efa4f3c31042f1fdf9e7a0c5f04663)

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);
                }