diff options
Diffstat (limited to 'fs/hpfs/file.c')
-rw-r--r-- | fs/hpfs/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/hpfs/file.c b/fs/hpfs/file.c index f284e3d42..fb5f566e7 100644 --- a/fs/hpfs/file.c +++ b/fs/hpfs/file.c @@ -24,7 +24,9 @@ int hpfs_open(struct inode *i, struct file *f) int hpfs_file_release(struct inode *inode, struct file *file) { + lock_kernel(); hpfs_write_if_changed(inode); + unlock_kernel(); return 0; } |