diff options
Diffstat (limited to 'fs/coda/file.c')
-rw-r--r-- | fs/coda/file.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/coda/file.c b/fs/coda/file.c index 99dbe866816d..e7d622709c90 100644 --- a/fs/coda/file.c +++ b/fs/coda/file.c | |||
@@ -143,8 +143,11 @@ int coda_open(struct inode *coda_inode, struct file *coda_file) | |||
143 | lock_kernel(); | 143 | lock_kernel(); |
144 | 144 | ||
145 | error = venus_open(coda_inode->i_sb, coda_i2f(coda_inode), coda_flags, | 145 | error = venus_open(coda_inode->i_sb, coda_i2f(coda_inode), coda_flags, |
146 | &host_file); | 146 | &host_file); |
147 | if (error || !host_file) { | 147 | if (!host_file) |
148 | error = -EIO; | ||
149 | |||
150 | if (error) { | ||
148 | kfree(cfi); | 151 | kfree(cfi); |
149 | unlock_kernel(); | 152 | unlock_kernel(); |
150 | return error; | 153 | return error; |