cifs: remove bogus call to cifs_cleanup_volume_info
Subsystems (2)
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
@@ -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
merged
Quoted 32 lines · Jeff Layton
This call to
cifs_cleanup_volume_infois clearly wrong. As soon as it's called the following call tocifs_get_tcp_sessionwill oops as thevolume_infopointer will then be NULL.The caller of
cifs_mountshould clean up this data since it passed it in. There's no need for us to call this here.Regression introduced by commit
724d9f1cfba.Reported-by Adam Williamson <[email protected]>Cc Pavel Shilovsky <[email protected]>Signed-off-by Jeff Layton <[email protected]>---
fs/cifs/connect.c | 1 -1 files changed, 0 insertions(+), 1 deletions(-)fs/cifs/connect.c +0
-2@@ -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