OSDN Git Service

nfsd: fix NULL pointer dereference in cld_pipe_downcall
authorJeff Layton <jlayton@redhat.com>
Wed, 28 Mar 2012 11:36:01 +0000 (07:36 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 28 Mar 2012 14:10:24 +0000 (10:10 -0400)
commit21f72c9f0a6774d104fb655bda6099c378518945
treefa320f8b928d9aa4277711f03d6d44af60e151b4
parent3af706135bcc06b1519ba50beaf1b47d32d0fc26
nfsd: fix NULL pointer dereference in cld_pipe_downcall

If we find that "cup" is NULL in this case, then we obviously don't
want to dereference it. What we really want to print in this case
is the xid that we copied off earlier.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4recover.c