diff mbox

[2/3] SQUASHME: pnfs-submit: fix highest backchannel slot used

Message ID 1289964990-4480-3-git-send-email-andros@netapp.com (mailing list archive)
State Changes Requested, archived
Headers show

Commit Message

Andy Adamson Nov. 17, 2010, 3:36 a.m. UTC
None
diff mbox

Patch

diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c
index a77877c..92719f1 100644
--- a/fs/nfs/callback_xdr.c
+++ b/fs/nfs/callback_xdr.c
@@ -791,7 +791,8 @@  static __be32 nfs4_callback_compound(struct svc_rqst *rqstp, void *argp, void *r
 
 	*hdr_res.status = status;
 	*hdr_res.nops = htonl(nops);
-	nfs4_callback_free_slot(cps.session);
+	if (cps.session)
+		nfs4_callback_free_slot(cps.session);
 	/* matched by cb_sequence find_client_with_session */
 	put_session_client(cps.session);
 	dprintk("%s: done, status = %u\n", __func__, ntohl(status));