aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2006-10-19 23:28:44 -0700
committerLinus Torvalds <[email protected]>2006-10-20 10:26:39 -0700
commitcc45f0175088e000ac7493e5e3f05579b6f7d240 (patch)
treecc53e59824097b45a39ca332b3451aedc43d4fe2 /include/linux/debugobjects.h
parentb7766da7f7395b74dec9e52005b7dac0d09391a4 (diff)
[PATCH] bug: nfsd/nfs4xdr.c misuse of ERR_PTR()
a) ERR_PTR(nfserr_something) is a bad idea; IS_ERR() will be false for it. b) mixing nfserr_.... with -EOPNOTSUPP is even worse idea. nfsd4_path() does both; caller expects to get NFS protocol error out it if anything goes wrong, but if it does we either do not notice (see (a)) or get host-endian negative (see (b)). IOW, that's a case when we can't use ERR_PTR() to return error, even though we return a pointer in case of success. Signed-off-by: Al Viro <[email protected]> Acked-by: Trond Myklebust <[email protected]> Acked-by: Neil Brown <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions