android_kernel_oneplus_msm8998/fs/ecryptfs
Dan Carpenter fd68989d3a eCryptfs: fix a couple type promotion bugs
commit 0bdf8a8245fdea6f075a5fede833a5fcf1b3466c upstream.

ECRYPTFS_SIZE_AND_MARKER_BYTES is type size_t, so if "rc" is negative
that gets type promoted to a high positive value and treated as success.

Fixes: 778aeb42a7 ("eCryptfs: Cleanup and optimize ecryptfs_lookup_interpose()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[tyhicks: Use "if/else if" rather than "if/if"]
Cc: stable@vger.kernel.org
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-04 09:34:53 +02:00
..
crypto.c eCryptfs: fix a couple type promotion bugs 2019-08-04 09:34:53 +02:00
debug.c
dentry.c
ecryptfs_kernel.h
file.c
inode.c do d_instantiate/unlock_new_inode combinations safely 2018-05-30 07:48:52 +02:00
Kconfig
keystore.c
kthread.c
main.c
Makefile
messaging.c
miscdev.c
mmap.c
read_write.c
super.c