Message ID | 20120918155207.3aa37309@corrin.poochiereds.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 0844b03..2126ab1 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -696,12 +696,12 @@ SendReceive2(const unsigned int xid, struct cifs_ses *ses, mutex_lock(&ses->server->srv_mutex); midQ = ses->server->ops->setup_request(ses, &rqst); - if (rc) { + if (IS_ERR(midQ)) { mutex_unlock(&ses->server->srv_mutex); cifs_small_buf_release(buf); /* Update # of requests on wire to server */ add_credits(ses->server, 1, optype); - return rc; + return PTR_ERR(midQ); } midQ->mid_state = MID_REQUEST_SUBMITTED;