Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'v6.12-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6

Pull smb client fixes from Steve French:

- Fix init module error caseb

- Fix memory allocation error path (for passwords) in mount

* tag 'v6.12-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
cifs: fix warning when destroy 'cifs_io_request_pool'
smb: client: Handle kstrdup failures for passwords

+8 -1
+1 -1
fs/smb/client/cifsfs.c
··· 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:
+7
fs/smb/client/fs_context.c
··· 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);