]> git.baikalelectronics.ru Git - kernel.git/commit
ecryptfs: re-order a condition for static checkers
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 22 Aug 2018 10:43:59 +0000 (13:43 +0300)
committerTyler Hicks <tyhicks@canonical.com>
Sat, 16 Feb 2019 22:42:48 +0000 (22:42 +0000)
commit95294fa02cfc7d3497fbfb1c4e5665e778caa468
tree0b05634cab3a03aa5bf5f057fa760c0d568eabce
parent1d00701de830b8d14016d6f1d09ddd89ace9e1ca
ecryptfs: re-order a condition for static checkers

Static checkers complain that we are using "s->i" as an offset before
we check whether it is within bounds.  It doesn't matter much but we
can easily swap the order of the checks to make everyone happy.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/keystore.c