File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1780,7 +1780,7 @@ static int cifs_init_netfs(void)
1780
1780
nomem_subreqpool :
1781
1781
kmem_cache_destroy (cifs_io_subrequest_cachep );
1782
1782
nomem_subreq :
1783
- mempool_destroy (& cifs_io_request_pool );
1783
+ mempool_exit (& cifs_io_request_pool );
1784
1784
nomem_reqpool :
1785
1785
kmem_cache_destroy (cifs_io_request_cachep );
1786
1786
nomem_req :
Original file line number Diff line number Diff line change @@ -920,8 +920,15 @@ static int smb3_reconfigure(struct fs_context *fc)
920
920
else {
921
921
kfree_sensitive (ses -> password );
922
922
ses -> password = kstrdup (ctx -> password , GFP_KERNEL );
923
+ if (!ses -> password )
924
+ return - ENOMEM ;
923
925
kfree_sensitive (ses -> password2 );
924
926
ses -> password2 = kstrdup (ctx -> password2 , GFP_KERNEL );
927
+ if (!ses -> password2 ) {
928
+ kfree_sensitive (ses -> password );
929
+ ses -> password = NULL ;
930
+ return - ENOMEM ;
931
+ }
925
932
}
926
933
STEAL_STRING (cifs_sb , ctx , domainname );
927
934
STEAL_STRING (cifs_sb , ctx , nodename );
You can’t perform that action at this time.
0 commit comments