git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
fs
/
ncpfs
/
inode.c
diff --git
a/fs/ncpfs/inode.c
b/fs/ncpfs/inode.c
index
cda1ffd
..
bea651f
100644
(file)
--- a/
fs/ncpfs/inode.c
+++ b/
fs/ncpfs/inode.c
@@
-873,7
+873,9
@@
int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
tmpattr.ia_valid = ATTR_MODE;
tmpattr.ia_mode = attr->ia_mode;
tmpattr.ia_valid = ATTR_MODE;
tmpattr.ia_mode = attr->ia_mode;
- inode_setattr(inode, &tmpattr);
+ result = inode_setattr(inode, &tmpattr);
+ if (result)
+ goto out;
}
}
#endif
}
}
#endif
@@
-899,13
+901,17
@@
int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
closing the file */
ncp_inode_close(inode);
result = ncp_make_closed(inode);
closing the file */
ncp_inode_close(inode);
result = ncp_make_closed(inode);
+ if (result)
+ goto out;
{
struct iattr tmpattr;
tmpattr.ia_valid = ATTR_SIZE;
tmpattr.ia_size = attr->ia_size;
{
struct iattr tmpattr;
tmpattr.ia_valid = ATTR_SIZE;
tmpattr.ia_size = attr->ia_size;
- inode_setattr(inode, &tmpattr);
+ result = inode_setattr(inode, &tmpattr);
+ if (result)
+ goto out;
}
}
if ((attr->ia_valid & ATTR_CTIME) != 0) {
}
}
if ((attr->ia_valid & ATTR_CTIME) != 0) {
@@
-951,7
+957,7
@@
int ncp_notify_change(struct dentry *dentry, struct iattr *attr)
#endif
}
if (!result)
#endif
}
if (!result)
- inode_setattr(inode, attr);
+
result =
inode_setattr(inode, attr);
out:
unlock_kernel();
return result;
out:
unlock_kernel();
return result;