WSL2-Linux-Kernel/fs/cifs
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: 026e93dc0a ("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
..
Kconfig
Makefile
asn1.c
cache.c
cifs_debug.c
cifs_debug.h
cifs_dfs_ref.c CIFS: add build_path_from_dentry_optional_prefix() 2017-03-01 22:26:10 -06:00
cifs_fs_sb.h cifs: Convert to separately allocated bdi 2017-04-20 12:09:55 -06:00
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c CIFS: add misssing SFM mapping for doublequote 2017-05-05 08:33:44 -05:00
cifs_unicode.h CIFS: add misssing SFM mapping for doublequote 2017-05-05 08:33:44 -05:00
cifs_uniupr.h
cifsacl.c cifs: cifsacl: Use a temporary ops variable to reduce code length 2017-05-12 19:45:18 -05:00
cifsacl.h
cifsencrypt.c fs: cifs: replace CURRENT_TIME by other appropriate apis 2017-05-08 17:15:15 -07:00
cifsfs.c Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6 2017-05-06 11:51:46 -07:00
cifsfs.h Introduce cifs_copy_file_range() 2017-04-07 08:04:41 -05:00
cifsglob.h [CIFS] Minor cleanup of xattr query function 2017-05-12 20:59:10 -05:00
cifspdu.h CIFS: move DFS response parsing out of SMB1 code 2017-03-01 22:26:10 -06:00
cifsproto.h [CIFS] Minor cleanup of xattr query function 2017-05-12 20:59:10 -05:00
cifssmb.c [CIFS] Minor cleanup of xattr query function 2017-05-12 20:59:10 -05:00
connect.c Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6 2017-05-06 11:51:46 -07:00
dir.c CIFS: add build_path_from_dentry_optional_prefix() 2017-03-01 22:26:10 -06:00
dns_resolve.c
dns_resolve.h
export.c
file.c CIFS: Set ->should_dirty in cifs_user_readv() 2017-06-20 17:57:27 -05:00
fscache.c
fscache.h
inode.c [CIFS] Minor cleanup of xattr query function 2017-05-12 20:59:10 -05:00
ioctl.c cifs: fix CIFS_IOC_GET_MNT_INFO oops 2017-05-03 19:32:35 -05:00
link.c
misc.c CIFS: check if pages is null rather than bv for a failed allocation 2017-06-20 19:11:35 -05:00
netmisc.c cifs: small underflow in cnvrtDosUnixTm() 2017-05-02 14:57:34 -05:00
nterr.c
nterr.h
ntlmssp.h
readdir.c
rfc1002pdu.h
sess.c smb2: Enforce sec= mount option 2017-03-02 23:13:37 -06:00
smb1ops.c CIFS: Improve readdir verbosity 2017-06-20 19:13:47 -05:00
smb2file.c CIFS: add use_ipc flag to SMB2_ioctl() 2017-03-01 22:26:11 -06:00
smb2glob.h
smb2inode.c
smb2maperror.c
smb2misc.c CIFS: fix oplock break deadlocks 2017-05-03 10:10:10 -05:00
smb2ops.c CIFS: Fix some return values in case of error in 'crypt_message' 2017-06-21 00:09:28 -05:00
smb2pdu.c SMB2: Fix share type handling 2017-05-12 19:55:56 -05:00
smb2pdu.h CIFS: implement get_dfs_refer for SMB2+ 2017-03-02 17:05:31 -06:00
smb2proto.h Handle mismatched open calls 2017-04-07 08:04:40 -05:00
smb2status.h
smb2transport.c cifs: don't check for failure from mempool_alloc() 2017-04-28 07:56:33 -05:00
smbencrypt.c
smberr.h
smbfsctl.h
transport.c fs: cifs: transport: Use time_after for time comparison 2017-05-12 19:56:44 -05:00
winucase.c
xattr.c cifs: remove redundant return in cifs_creation_time_get 2017-06-20 19:14:40 -05:00