Searched hist:"595937135330 dbeab489dfbf444cbd9c536667df" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/tee/ |
| H A D | tadb.c | 595937135330dbeab489dfbf444cbd9c536667df Thu May 27 11:13:20 UTC 2021 Jens Wiklander <jens.wiklander@linaro.org> 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>
|