commit | 595937135330dbeab489dfbf444cbd9c536667df | [log] [tgz] |
---|---|---|
author | Jens Wiklander <jens.wiklander@linaro.org> | Thu May 27 13:13:20 2021 +0200 |
committer | Jérôme Forissier <jerome@forissier.org> | Mon Jun 07 10:22:32 2021 +0200 |
tree | 9b2c0d0e32cbbb3020f4fe17955b267efe012a5e | |
parent | 68697bf5fb3e7ef39cb5817ced1eb813f2f51f77 [diff] |
core: fix populate_files() coverity warning In populate_files() db->files is checked to be not NULL leading but at another place db->nbits is checked instead before accessing db->files. Both checks are OK since db->files mustn't be NULL if db->nbits is larger than 0. This confuses coverity to emit a warning, so change the function to check db->nbits instead. This fixes coverity scan: CID 1501793 (#1 of 1): Dereference after null check (FORWARD_NULL) Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers