CIFS: refactor crypto shash/sdesc allocation&free
shash and sdesc and always allocated and freed together. * abstract this in new functions cifs_alloc_hash() and cifs_free_hash(). * make smb2/3 crypto allocation independent from each other. Signed-off-by:Aurelien Aptel <aaptel@suse.com> Signed-off-by:
Steve French <smfrench@gmail.com> Reviewed-by:
Ronnie Sahlberg <lsahlber@redhat.com> CC: Stable <stable@vger.kernel.org>
Showing
- fs/cifs/cifsencrypt.c 7 additions, 71 deletionsfs/cifs/cifsencrypt.c
- fs/cifs/cifsproto.h 5 additions, 0 deletionsfs/cifs/cifsproto.h
- fs/cifs/link.c 6 additions, 21 deletionsfs/cifs/link.c
- fs/cifs/misc.c 54 additions, 0 deletionsfs/cifs/misc.c
- fs/cifs/smb2transport.c 15 additions, 60 deletionsfs/cifs/smb2transport.c
- fs/cifs/smbencrypt.c 6 additions, 21 deletionsfs/cifs/smbencrypt.c
Please register or sign in to comment