]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
CIFS: refactor crypto shash/sdesc allocation&free
authorAurelien Aptel <aaptel@suse.com>
Fri, 16 Feb 2018 18:19:27 +0000 (19:19 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 15:48:27 +0000 (11:48 -0400)
commit22dc122c313878fcf8072b41b9ce0dcea544ea3c
tree75473785e3b9ceaa878cec53c1944e6406f0c0b3
parent8f1da1e1401ae6ebcc5640863f4769d5d48b89ad
CIFS: refactor crypto shash/sdesc allocation&free

BugLink: http://bugs.launchpad.net/bugs/1773233
commit 82fb82be05585426405667dd5f0510aa953ba439 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsproto.h
fs/cifs/link.c
fs/cifs/misc.c
fs/cifs/smb2transport.c
fs/cifs/smbencrypt.c