Skip to content

Commit b2a42f7

Browse files
thierryredingBen Myers
authored andcommitted
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 <treding@nvidia.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com> (cherry picked from commit aaaae98)
1 parent 9b3b77f commit b2a42f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/xfs_log_recover.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ xlog_recover_add_to_trans(
15851585
"bad number of regions (%d) in inode log format",
15861586
in_f->ilf_size);
15871587
ASSERT(0);
1588-
free(ptr);
1588+
kmem_free(ptr);
15891589
return XFS_ERROR(EIO);
15901590
}
15911591

0 commit comments

Comments
 (0)