aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-10-25 13:35:08 +0300
committerSteve French <stfrench@microsoft.com>2019-11-25 01:14:14 -0600
commit8bd3754cff3aa6e80e73cb56042cdc6f76d6510e (patch)
tree3dda8fba9bbae1600bf17d78198b1537d784977c /fs/cifs
parentLinux 5.4 (diff)
downloadlinux-dev-8bd3754cff3aa6e80e73cb56042cdc6f76d6510e.tar.xz
linux-dev-8bd3754cff3aa6e80e73cb56042cdc6f76d6510e.zip
cifs: rename a variable in SendReceive()
Smatch gets confused because we sometimes refer to "server->srv_mutex" and sometimes to "sess->server->srv_mutex". They refer to the same lock so let's just make this consistent. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index ca3de62688d6..f27842fb9f75 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -1287,7 +1287,7 @@ SendReceive(const unsigned int xid, struct cifs_ses *ses,
rc = allocate_mid(ses, in_buf, &midQ);
if (rc) {
- mutex_unlock(&ses->server->srv_mutex);
+ mutex_unlock(&server->srv_mutex);
/* Update # of requests on wire to server */
add_credits(server, &credits, 0);
return rc;