* [PATCH] cifs: remove bogus call to cifs_cleanup_volume_info
@ 2011-07-05 21:37 Jeff Layton
[not found] ` <1309901857-32016-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Layton @ 2011-07-05 21:37 UTC (permalink / raw)
To: smfrench-Re5JQEeQqe8AvxtiuMwx3w
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA,
awilliam-H+wXaHxf7aLQT0dZR+AlfA,
piastryyy-Re5JQEeQqe8AvxtiuMwx3w
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.
Reported-by: Adam Williamson <awilliam-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Pavel Shilovsky <piastryyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Signed-off-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
fs/cifs/connect.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index c8cb83e..545e854 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] cifs: remove bogus call to cifs_cleanup_volume_info
[not found] ` <1309901857-32016-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2011-07-06 3:14 ` Steve French
0 siblings, 0 replies; 2+ messages in thread
From: Steve French @ 2011-07-06 3:14 UTC (permalink / raw)
To: Jeff Layton
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA,
awilliam-H+wXaHxf7aLQT0dZR+AlfA,
piastryyy-Re5JQEeQqe8AvxtiuMwx3w
merged
On Tue, Jul 5, 2011 at 4:37 PM, Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> 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.
>
> Reported-by: Adam Williamson <awilliam-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> Cc: Pavel Shilovsky <piastryyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Signed-off-by: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
> fs/cifs/connect.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
> index c8cb83e..545e854 100644
> --- a/fs/cifs/connect.c
> +++ b/fs/cifs/connect.c
> @@ -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
>
>
--
Thanks,
Steve
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-06 3:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-05 21:37 [PATCH] cifs: remove bogus call to cifs_cleanup_volume_info Jeff Layton
[not found] ` <1309901857-32016-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-07-06 3:14 ` Steve French
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.