diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2017-06-11 09:12:47 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-06-21 00:09:28 -0500 |
commit | 517a6e43c4872c89794af5b377fa085e47345952 (patch) | |
tree | 4abc165240c6f48044e475c58609202fb5fe16a4 /fs/9p | |
parent | e125f5284f81bbb765a504494622b45c02faf978 (diff) | |
download | linux-517a6e43c4872c89794af5b377fa085e47345952.tar.gz linux-517a6e43c4872c89794af5b377fa085e47345952.tar.bz2 linux-517a6e43c4872c89794af5b377fa085e47345952.zip |
CIFS: Fix some return values in case of error in 'crypt_message'
'rc' is known to be 0 at this point. So if 'init_sg' or 'kzalloc' fails, we
should return -ENOMEM instead.
Also remove a useless 'rc' in a debug message as it is meaningless here.
Fixes: 026e93dc0a3ee ("CIFS: Encrypt SMB3 requests before sending")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <smfrench@gmail.com>
CC: Stable <stable@vger.kernel.org>
Diffstat (limited to 'fs/9p')
0 files changed, 0 insertions, 0 deletions