[patch 3/4] vfs: fix ERR_PTR abuse in generic_readlink
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Mon, 9 Jun 2008 23:40:37 +0000 (16:40 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 23 Jun 2008 15:52:30 +0000 (11:52 -0400)
commit694a1764d657e0f7a9b139bc7269c8d5f5a2534b
tree754e073cce539c3b6f93e61c3f729bc5959f12f4
parent20d4fdc1a788e4ca0aaf2422772ba668e7e10839
[patch 3/4] vfs: fix ERR_PTR abuse in generic_readlink

generic_readlink calls ERR_PTR for negative and positive values
(vfs_readlink returns length of "link"), but it should not
(not an errno) and does not need to.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Acked-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c