Christophe Jaillet 517a6e43c4 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>
2017-06-21 00:09:28 -05:00
..
2016-10-13 19:48:11 -05:00
2017-04-07 08:04:41 -05:00
2013-11-08 05:57:46 +09:00
2017-05-03 19:32:35 -05:00
2016-12-15 00:21:37 -06:00
2017-01-14 14:58:29 -06:00
2007-06-05 18:30:44 +00:00
2017-03-02 23:13:37 -06:00
2017-06-20 19:13:47 -05:00
2017-05-03 10:10:10 -05:00
2017-05-12 19:55:56 -05:00
2017-04-07 08:04:40 -05:00
2012-07-24 10:25:13 -05:00
2013-09-08 14:54:24 -05:00