From b13ce4bbcae6181eb9cdda5a5bf88a28b0acd7aa Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Wed, 10 Apr 2013 14:43:00 +0300 Subject: cifs: small variable name cleanup server and ses->server are the same, but it's a little bit ugly that we lock &ses->server->srv_mutex and unlock &server->srv_mutex. It causes a false positive in Smatch about inconsistent locking. Signed-off-by: Dan Carpenter Signed-off-by: Steve French Signed-off-by: Steve French --- fs/cifs/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/cifs') diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 9535abe3d24..99eeaa17ee0 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -3836,7 +3836,7 @@ cifs_setup_session(const unsigned int xid, struct cifs_ses *ses, if (rc) { cifs_dbg(VFS, "Send error in SessSetup = %d\n", rc); } else { - mutex_lock(&ses->server->srv_mutex); + mutex_lock(&server->srv_mutex); if (!server->session_estab) { server->session_key.response = ses->auth_key.response; server->session_key.len = ses->auth_key.len; -- cgit v1.2.3-70-g09d2