NFSv4: Check for NULL argument in nfs_*_seqid() functions
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
badc76dd0d
commit
a67964197c
2 changed files with 18 additions and 8 deletions
|
@ -946,7 +946,10 @@ static void encode_uint64(struct xdr_stream *xdr, u64 n)
|
|||
static void encode_nfs4_seqid(struct xdr_stream *xdr,
|
||||
const struct nfs_seqid *seqid)
|
||||
{
|
||||
encode_uint32(xdr, seqid->sequence->counter);
|
||||
if (seqid != NULL)
|
||||
encode_uint32(xdr, seqid->sequence->counter);
|
||||
else
|
||||
encode_uint32(xdr, 0);
|
||||
}
|
||||
|
||||
static void encode_compound_hdr(struct xdr_stream *xdr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue