summaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/keystore.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-07-04 12:35:56 +0300
committerTyler Hicks <tyhicks@canonical.com>2019-02-16 22:42:47 +0000
commit0bdf8a8245fdea6f075a5fede833a5fcf1b3466c (patch)
treec599abcee8b22ab95caa56f7e628026f1ed4cd8d /fs/ecryptfs/keystore.c
parent5ded5871030eb75017639148da0a58931dfbfc25 (diff)
downloadlinux-0bdf8a8245fdea6f075a5fede833a5fcf1b3466c.tar.bz2
eCryptfs: fix a couple type promotion bugs
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>
Diffstat (limited to 'fs/ecryptfs/keystore.c')
0 files changed, 0 insertions, 0 deletions