]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: remove bogus call to cifs_cleanup_volume_info
authorJeff Layton <jlayton@redhat.com>
Tue, 5 Jul 2011 21:37:37 +0000 (17:37 -0400)
committerSteve French <sfrench@us.ibm.com>
Wed, 6 Jul 2011 20:03:04 +0000 (20:03 +0000)
commitcbaf0b170fcad12375c1c1818e5a475fbe826340
tree28e5931d4c480c8a90e722cb0a0e6f1bef46cea9
parentabad236a2cd81619100fdf22a99fb3596e56640f
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 a8af600dad9.

Reported-by: Adam Williamson <awilliam@redhat.com>
Cc: Pavel Shilovsky <piastryyy@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c