[syslinux:pathbased] generic_close_file: use put_inode(), not free_inode()

syslinux-bot for H. Peter Anvin hpa at zytor.com
Tue Feb 16 09:27:19 PST 2010


Commit-ID:  8f96de939314605392a8e54a638fa826f029f851
Gitweb:     http://syslinux.zytor.com/commit/8f96de939314605392a8e54a638fa826f029f851
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Tue, 16 Feb 2010 09:21:09 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Tue, 16 Feb 2010 09:21:09 -0800

generic_close_file: use put_inode(), not free_inode()

Nothing other than put_inode() should ever really call free_inode()...

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 core/fs/lib/close.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core/fs/lib/close.c b/core/fs/lib/close.c
index 4504327..279598b 100644
--- a/core/fs/lib/close.c
+++ b/core/fs/lib/close.c
@@ -4,6 +4,6 @@ void generic_close_file(struct file *file)
 {
     if (file->inode) {
 	file->offset = 0;
-	free_inode(file->inode);
+	put_inode(file->inode);
     }
 }



More information about the Syslinux-commits mailing list