tree:
https://android.googlesource.com/kernel/goldfish android-4.14
head: 4a1f984742c7b4ebfd2d77f48bf24b4ffcb069fd
commit: 318babce66a62d8bc8d5434909a044b89ab3a53e [1/3] ANDROID: Initial commit of
Incremental FS
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
cppcheck warnings: (new ones prefixed by >>)
> fs/incfs/integrity.c:196:28: warning: Either the condition
'!alg' is redundant or there is possible null pointer dereference: alg.
[nullPointerRedundantCheck]
SHASH_DESC_ON_STACK(desc, alg->shash);
^
fs/incfs/integrity.c:198:6: note: Assuming that condition '!alg' is not
redundant
if (!alg || !alg->shash || !data.data || !digest.data)
^
fs/incfs/integrity.c:196:28: note: Null pointer dereference
SHASH_DESC_ON_STACK(desc, alg->shash);
^
vim +196 fs/incfs/integrity.c
192
193 int incfs_calc_digest(struct incfs_hash_alg *alg, struct mem_range data,
194 struct mem_range digest)
195 {
196 SHASH_DESC_ON_STACK(desc, alg->shash);
197
198 if (!alg || !alg->shash || !data.data || !digest.data)
199 return -EFAULT;
200
201 if (alg->digest_size > digest.len)
202 return -EINVAL;
203
204 desc->tfm = alg->shash;
205 return crypto_shash_digest(desc, data.data, data.len, digest.data);
206 }
207
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org