Skip to contentSkip to conversation

cifs: remove bogus call to cifs_cleanup_volume_info

PATCH In review Jeff Layton 2 participants 2 messages Jul 5, 2011 – Jul 6, 2011 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs: remove bogus call to cifs_cleanup_volume_info

This call to cifs_cleanup_volume_info is clearly wrong. As soon as it's called the following call to cifs_get_tcp_session will oops as the volume_info pointer will then be NULL.

The caller of cifs_mount should clean up this data since it passed it in. There's no need for us to call this here.

Regression introduced by commit 724d9f1cfba.

---
 fs/cifs/connect.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/cifs/connect.c +0 -1
index c8cb83e..545e854 100644
@@ -3012,7 +3012,6 @@ try_mount_again:
 		else if (pSesInfo)
 			cifs_put_smb_ses(pSesInfo);
 
-		cifs_cleanup_volume_info(&volume_info);
 		FreeXid(xid);
 	}
 #endif
Signature · 1 line
1.7.6
#2 lore raw
In reply to a message not in the archive

merged

Quoted 32 lines · Jeff Layton

This call to cifs_cleanup_volume_info is clearly wrong. As soon as it's called the following call to cifs_get_tcp_session will oops as the volume_info pointer will then be NULL.

The caller of cifs_mount should clean up this data since it passed it in. There's no need for us to call this here.

Regression introduced by commit 724d9f1cfba.

---
 fs/cifs/connect.c |    1 -

 1 files changed, 0 insertions(+), 1 deletions(-)
fs/cifs/connect.c +0 -2
index c8cb83e..545e854 100644
@@ -3012,7 +3012,6 @@ try_mount_again:
                else if (pSesInfo)
                        cifs_put_smb_ses(pSesInfo);
 
-               cifs_cleanup_volume_info(&volume_info);
                FreeXid(xid);
        }
  #endif
--

1.7.6

Signature · 3 lines
Thanks,

Steve