projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs direct: Add proper error handler for too many files open
[yaffs2.git]
/
yaffs_vfs.c
diff --git
a/yaffs_vfs.c
b/yaffs_vfs.c
index 371ddd1dc9a4d29a8beabe43d052a66e9309a011..b1b6840939de4426e808a56ef4e9f16cdc54d3a5 100644
(file)
--- a/
yaffs_vfs.c
+++ b/
yaffs_vfs.c
@@
-512,7
+512,7
@@
static int yaffs_readlink(struct dentry *dentry, char __user *buffer,
static void *yaffs_follow_link(struct dentry *dentry, struct nameidata *nd)
{
unsigned char *alias;
static void *yaffs_follow_link(struct dentry *dentry, struct nameidata *nd)
{
unsigned char *alias;
-
int
ret;
+
void *
ret;
yaffs_dev_t *dev = yaffs_dentry_to_obj(dentry)->my_dev;
yaffs_gross_lock(dev);
yaffs_dev_t *dev = yaffs_dentry_to_obj(dentry)->my_dev;
yaffs_gross_lock(dev);
@@
-521,14
+521,14
@@
static void *yaffs_follow_link(struct dentry *dentry, struct nameidata *nd)
yaffs_gross_unlock(dev);
if (!alias) {
yaffs_gross_unlock(dev);
if (!alias) {
- ret =
-ENOMEM
;
+ ret =
ERR_PTR(-ENOMEM)
;
goto out;
}
nd_set_link(nd, alias);
goto out;
}
nd_set_link(nd, alias);
- ret = (
int
)alias;
+ ret = (
void *
)alias;
out:
out:
- return
ERR_PTR(ret)
;
+ return
ret
;
}
void yaffs_put_link(struct dentry *dentry, struct nameidata *nd, void *alias) {
}
void yaffs_put_link(struct dentry *dentry, struct nameidata *nd, void *alias) {