[PATCH v2] amdgpu: nbio_v7_4: Add pointer check

2022-11-19 Thread Denis Arefev
Return value of a function 'amdgpu_ras_find_obj' is dereferenced at nbio_v7_4.c:325 without checking for null Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Denis Arefev --- drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [PATCH v2] amdgpu: nbio_v7_4: Add pointer check

2022-11-18 Thread Alex Deucher
On Fri, Nov 18, 2022 at 9:11 AM Denis Arefev wrote: > > Return value of a function 'amdgpu_ras_find_obj' is dereferenced > at nbio_v7_4.c:325 without checking for null > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Signed-off-by: Denis Arefev > --- > drivers/gpu/drm/am

RE: [PATCH] nbio_v7_4: Add pointer check

2022-11-11 Thread Zhang, Hawking
dri-devel@lists.freedesktop.org; amd-...@lists.freedesktop.org; Daniel Vetter ; Koenig, Christian Subject: [PATCH] nbio_v7_4: Add pointer check Return value of a function 'amdgpu_ras_find_obj' is dereferenced at nbio_v7_4.c:325 without checking for null Found by Linux Veri

[PATCH] nbio_v7_4: Add pointer check

2022-11-11 Thread Denis Arefev
Return value of a function 'amdgpu_ras_find_obj' is dereferenced at nbio_v7_4.c:325 without checking for null Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Denis Arefev --- drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 3 +++ 1 file changed, 3 insertions(+) diff

Re: nbio_v7_4: Add pointer check

2022-11-10 Thread Limonciello, Mario
On 11/10/2022 06:28, Denis Arefev wrote: Return value of a function 'amdgpu_ras_find_obj' is dereferenced at nbio_v7_4.c:325 without checking for null This line is too long, you should be wrapping lines at 75 characters. Could you run your patch through checkpatch? Found by Linux Verificati

[PATCH] nbio_v7_4: Add pointer check

2022-11-10 Thread Denis Arefev
Return value of a function 'amdgpu_ras_find_obj' is dereferenced at nbio_v7_4.c:325 without checking for null Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Denis Arefev --- drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 3 +++ 1 file changed, 3 insertions(+) diff