nfsd4: fix oops on secinfo_no_name result encoding
authorMi Jinlong <mijinlong@cn.fujitsu.com>
Mon, 27 Dec 2010 06:29:57 +0000 (14:29 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 29 Dec 2010 18:54:06 +0000 (11:54 -0700)
commit22b6dee842c6341b49bc09cc5728eb2f8f2b3766
tree36c4a39433f2e99c385ab4eca11cfc8dcb99ca14
parent04f4ad16b231abbfde34c762697ad035a3af0b5f
nfsd4: fix oops on secinfo_no_name result encoding

The secinfo_no_name code oopses on encoding with

BUG: unable to handle kernel NULL pointer dereference at 00000044
IP: [<e2bd239a>] nfsd4_encode_secinfo+0x1c/0x1c1 [nfsd]

We should implement a nfsd4_encode_secinfo_no_name() instead using
nfsd4_encode_secinfo().

Signed-off-by: Mi Jinlong <mijinlong@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c