check for null client session before BIND_CONN

This commit is contained in:
Olga Kornievskaia 2011-02-28 14:43:01 -05:00 committed by unknown
parent 5cf32c11c2
commit e0fc4cf985

View file

@ -285,7 +285,8 @@ out_unlock:
/* after releasing the rpc lock, send a BIND_CONN_TO_SESSION if
* we need to associate the connection with the backchannel */
if (status == NO_ERROR && rpc->needcb) {
if (status == NO_ERROR && rpc->needcb &&
rpc->client && rpc->client->session) {
status = nfs41_bind_conn_to_session(rpc,
rpc->client->session->session_id, CDFC4_BACK_OR_BOTH);
if (status)