Hello there, linux-5.3-rc3/drivers/gpu/drm/nouveau/nouveau_svm.c:763]: (style) Array index 'i' is used before limits check. Source code is for (i = 0; buffer->fault[i] && i < buffer->entries; i++) Maybe better code: for (i = 0; (i < buffer->entries) && buffer->fault[i]; i++) Regards David Binderman
Possibly Parallel Threads
- [PATCH] drivers/nouveau_svm: fix bounds check in nouveau_svm_fault_buffer_dtor
- [PATCH 07/13] mm: remove the page_shift member from struct hmm_range
- [PATCH 07/15] mm: remove the page_shift member from struct hmm_range
- [PATCH hmm 2/5] mm/hmm: make hmm_range_fault return 0 or -1
- [PATCH hmm v2 2/5] mm/hmm: make hmm_range_fault return 0 or -1