Searched hist:"0 bdf8a8245fdea6f075a5fede833a5fcf1b3466c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/ecryptfs/ |
H A D | crypto.c | diff 0bdf8a8245fdea6f075a5fede833a5fcf1b3466c Wed Jul 04 04:35:56 CDT 2018 Dan Carpenter <dan.carpenter@oracle.com> 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>
|