diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-07-04 12:35:56 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-10-31 22:14:49 +0000 |
commit | 30f52cfd5239697c0552ff169e16c2aebcd3b665 (patch) | |
tree | 2c750a733908712c306b3b37d87de9f995ac384f /arch | |
parent | c508a924ddd1119a8037c1ec23f560eade0444c6 (diff) |
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"]
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions