projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
coda: cleanup downcall handler
[powerpc.git]
/
fs
/
coda
/
file.c
diff --git
a/fs/coda/file.c
b/fs/coda/file.c
index
99dbe86
..
e7d6227
100644
(file)
--- 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)
lock_kernel();
error = venus_open(coda_inode->i_sb, coda_i2f(coda_inode), coda_flags,
- &host_file);
- if (error || !host_file) {
+ &host_file);
+ if (!host_file)
+ error = -EIO;
+
+ if (error) {
kfree(cfi);
unlock_kernel();
return error;