If registering fs cache failed, we weren't cleaning up proc.
Acked-by: Jeff Layton <jlayton@redhat.com>
CC: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
rc = cifs_fscache_register();
if (rc)
rc = cifs_fscache_register();
if (rc)
rc = cifs_init_inodecache();
if (rc)
rc = cifs_init_inodecache();
if (rc)
+ goto out_unreg_fscache;
rc = cifs_init_mids();
if (rc)
rc = cifs_init_mids();
if (rc)
return 0;
#ifdef CONFIG_CIFS_UPCALL
return 0;
#ifdef CONFIG_CIFS_UPCALL
- out_unregister_filesystem:
+out_unregister_filesystem:
unregister_filesystem(&cifs_fs_type);
#endif
unregister_filesystem(&cifs_fs_type);
#endif
- out_destroy_request_bufs:
+out_destroy_request_bufs:
cifs_destroy_request_bufs();
cifs_destroy_request_bufs();
- out_destroy_inodecache:
cifs_destroy_inodecache();
cifs_destroy_inodecache();
- out_clean_proc:
- cifs_proc_clean();
cifs_fscache_unregister();
cifs_fscache_unregister();
+out_clean_proc:
+ cifs_proc_clean();
#include "ntlmssp.h"
#include "nterr.h"
#include "rfc1002pdu.h"
#include "ntlmssp.h"
#include "nterr.h"
#include "rfc1002pdu.h"
#include "fscache.h"
#define CIFS_PORT 445
#include "fscache.h"
#define CIFS_PORT 445