diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-05-19 18:50:53 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-05-19 18:50:53 -0700 |
| commit | a193c746fe6dfe1d3e130c9669fb484833a9eebd (patch) | |
| tree | ab3777af57ba78557a957a3b0571290d47fdcd75 | |
| parent | 27a044d5f3fbcb63049413409f8314f68abbb31e (diff) | |
[PATCH] revert sysfs non-fix
I completely misread this code and there was no bug. In fact yesterday's fix
broke it. Revert.
| -rw-r--r-- | fs/sysfs/symlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c index 8ec65b81bdce..5a2bd9c90a38 100644 --- a/fs/sysfs/symlink.c +++ b/fs/sysfs/symlink.c @@ -80,7 +80,7 @@ int sysfs_create_link(struct kobject * kobj, struct kobject * target, char * nam char * s; depth = object_depth(kobj); - size = object_path_length(target) + depth * 3 + 1; + size = object_path_length(target) + depth * 3 - 1; if (size > PATH_MAX) return -ENAMETOOLONG; pr_debug("%s: depth = %d, size = %d\n",__FUNCTION__,depth,size); |
