android_kernel_samsung_a7y1.../fs/ecryptfs
Dan Carpenter f6413163fd 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: 778aeb42a708 ("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>
2020-04-06 20:04:55 +02:00
..
crypto.c eCryptfs: fix a couple type promotion bugs 2020-04-06 20:04:55 +02:00
debug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dentry.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ecryptfs_dek.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ecryptfs_dek.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ecryptfs_dlp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ecryptfs_kernel.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ecryptfs_sdp_chamber.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ecryptfs_sdp_chamber.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
file.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
keystore.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kthread.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
main.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
messaging.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
miscdev.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mmap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
read_write.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
super.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30