From: Thierry Reding Date: Tue, 1 Oct 2013 14:47:53 +0000 (+0200) Subject: xfs: Use kmem_free() instead of free() X-Git-Tag: v3.12-rc4~12^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2a42f78ab475f4730300b0e9568bc3b2587d112;p=profile%2Fivi%2Fkernel-x86-ivi.git xfs: Use kmem_free() instead of free() This fixes a build failure caused by calling the free() function which does not exist in the Linux kernel. Signed-off-by: Thierry Reding Reviewed-by: Mark Tinguely Signed-off-by: Ben Myers (cherry picked from commit aaaae98022efa4f3c31042f1fdf9e7a0c5f04663) --- 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); }