linux-5.3-rc3 bug report

David Binderman dcb314 at hotmail.com
Mon Aug 5 08:30:42 UTC 2019


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


More information about the dri-devel mailing list