cifs: free nativeFileSystem field before allocating a new one
authorJeff Layton <jlayton@redhat.com>
Mon, 20 Jul 2009 17:40:52 +0000 (13:40 -0400)
committerSteve French <sfrench@us.ibm.com>
Mon, 20 Jul 2009 18:24:37 +0000 (18:24 +0000)
commit90a98b2f3f3647fb17667768a348b2b219f2a9f7
tree784f9cf1728176d7f604fede2ce845cfd6bcf31c
parent287638b2c533165c3c03dfa15196c2ba583cd287
cifs: free nativeFileSystem field before allocating a new one

...otherwise, we'll leak this memory if we have to reconnect (e.g. after
network failure).

Signed-off-by: Jeff Layton <jlayton@redhat.com>
CC: Stable <stable@kernel.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c