]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
CIFS: fix sha512 check in cifs_crypto_secmech_release
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 19 Feb 2018 17:11:13 +0000 (11:11 -0600)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 15:48:29 +0000 (11:48 -0400)
commit18fcc1b5287dabaa9f463e685aef79be645b0f37
treee9537d90c7d9ab2a5e5bd7db12f3e1698c27824b
parente5c87c2626f0dcc2619850592060efe5e1aa4a89
CIFS: fix sha512 check in cifs_crypto_secmech_release

BugLink: http://bugs.launchpad.net/bugs/1773233
commit 70e80655f58e17a2e38e577e1b4fa7a8c99619a0 upstream.

It seems this is a copy-paste error and that the proper variable to use
in this particular case is _sha512_ instead of _md5_.

Addresses-Coverity-ID: 1465358 ("Copy-paste error")
Fixes: 1c6614d229e7 ("CIFS: add sha512 secmech")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <smfrench@gmail.com>
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