Skip to content

Commit

Permalink
xfs: Use kmem_free() instead of free()
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
thierryreding authored and Ben Myers committed Oct 4, 2013
1 parent 9b3b77f commit b2a42f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_log_recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b2a42f7

Please sign in to comment.