nfsd: add the infrastructure to handle the cld upcall
Subsystems (2)
Hello Jeff Layton,
This is a semi-automatic email about new static checker warnings.
The patch f3f8014862d8: "nfsd: add the infrastructure to handle the cld upcall" from Mar 21, 2012, leads to the following Smatch complaint:
fs/nfsd/nfs4recover.c:605 cld_pipe_downcall()
error: we previously assumed 'cup' could be null (see line 604)
fs/nfsd/nfs4recover.c
603 /* couldn't find upcall? */
604 if (!cup) {
^^^^Check.
605 dprintk("%s: couldn't find upcall -- xid=%u\n", __func__,
606 cup->cu_msg.cm_xid);
^^^^^Dereference.
607 return -EINVAL;
regards,
dan carpenter