]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix a signed vs. unsigned secinfo bug
authorBryan Schumaker <bjschuma@netapp.com>
Wed, 6 Apr 2011 18:33:28 +0000 (14:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 6 Apr 2011 20:25:04 +0000 (13:25 -0700)
commit3dd27dc439ff3b0276ed9acbca338225f6eeb367
treed0609f12b62962806adc092867350b7bfcfed5a3
parent91bbf855cb7fe26340c660786c220b72374c35f8
NFS: Fix a signed vs. unsigned secinfo bug

rpc_authflavor_t is cast from an unsigned int, but the
initial code tried to use it as a signed int.  I fix
this by passing an rpc_authflavor_t pointer around, and
returning signed integers from functions.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/namespace.c