summaryrefslogtreecommitdiff
path: root/src/fs/fs.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs.cc')
-rw-r--r--src/fs/fs.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/fs.cc b/src/fs/fs.cc
index b2b91c2..c5a34ee 100644
--- a/src/fs/fs.cc
+++ b/src/fs/fs.cc
@@ -111,8 +111,10 @@ namespace VFS
ip->lock.release();
}
- static void iunlockput(Inode *ip)
+ void iunlockput(Inode *ip)
{
+ if (!ip)
+ return;
iunlock(ip);
iput(ip);
}