]> Git Repo - linux.git/commit - fs/namei.c
[patch 3/4] vfs: fix ERR_PTR abuse in generic_readlink
authorMarcin Slusarz <[email protected]>
Mon, 9 Jun 2008 23:40:37 +0000 (16:40 -0700)
committerAl Viro <[email protected]>
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 <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Acked-by: Miklos Szeredi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Al Viro <[email protected]>
fs/namei.c
This page took 0.05189 seconds and 4 git commands to generate.