]> git.baikalelectronics.ru Git - kernel.git/commit
Limit allocation of crypto mechanisms to dialect which requires
authorSteve French <smfrench@gmail.com>
Thu, 4 Jul 2013 15:35:21 +0000 (10:35 -0500)
committerSteve French <smfrench@gmail.com>
Thu, 4 Jul 2013 19:38:08 +0000 (14:38 -0500)
commit4a345cef079b38ad3099d19f78aef99baf9b86d4
treea0c0bb7bd46fd3d527011bb14b53972decf6a818
parent2730387b70e8a49ce488b8c12b2bbd8e127bed76
Limit allocation of crypto mechanisms to dialect which requires

Updated patch to try to prevent allocation of cifs, smb2 or smb3 crypto
secmech structures unless needed.  Currently cifs allocates all crypto
mechanisms when the first session is established (4 functions and
4 contexts), rather than only allocating these when needed (smb3 needs
two, the rest of the dialects only need one).

Acked-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/smb2transport.c