Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thierry Reding and committed by
Ben Myers
aaaae980 519ccb81

+1 -1
+1 -1
fs/xfs/xfs_log_recover.c
··· 1585 1585 "bad number of regions (%d) in inode log format", 1586 1586 in_f->ilf_size); 1587 1587 ASSERT(0); 1588 - free(ptr); 1588 + kmem_free(ptr); 1589 1589 return XFS_ERROR(EIO); 1590 1590 } 1591 1591