]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: correctly handle return value from nfsd_map_name_to_*
authorNeilBrown <neilb@suse.de>
Wed, 16 Feb 2011 02:08:35 +0000 (13:08 +1100)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 16 Feb 2011 23:31:05 +0000 (18:31 -0500)
commit6ac6d9d1f76c3ac65c50f32938f0e8ab2ddbf89d
treeea581e7c383b25242355335c4c06aad21b9bf4cc
parentb51dc7994d3e25dd6d03a2be5ba9f228d9c3d47b
nfsd: correctly handle return value from nfsd_map_name_to_*

These functions return an nfs status, not a host_err.  So don't
try to convert  before returning.

This is a regression introduced by
adc63d346d71c953c8dc5518b8eaf3be18fd1a7c; I fixed up two of the callers,
but missed these two.

Cc: stable@kernel.org
Reported-by: Herbert Poetzl <herbert@13thfloor.at>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c