Re: [PATCH v2] drm/amdgpu: Fix realloc of ptr

2022-02-28 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Feb 28, 2022 at 5:55 AM Christian König wrote: > > Am 27.02.22 um 16:33 schrieb t...@redhat.com: > > From: Tom Rix > > > > Clang static analysis reports this error > > amdgpu_debugfs.c:1690:9: warning: 1st function call > >argument is an uninitialized value >

Re: [PATCH v2] drm/amdgpu: Fix realloc of ptr

2022-02-28 Thread Christian König
Am 27.02.22 um 16:33 schrieb t...@redhat.com: From: Tom Rix Clang static analysis reports this error amdgpu_debugfs.c:1690:9: warning: 1st function call argument is an uninitialized value tmp = krealloc_array(tmp, i + 1, ^~~ realloc uses tmp, so tmp can

[PATCH v2] drm/amdgpu: Fix realloc of ptr

2022-02-27 Thread trix
From: Tom Rix Clang static analysis reports this error amdgpu_debugfs.c:1690:9: warning: 1st function call argument is an uninitialized value tmp = krealloc_array(tmp, i + 1, ^~~ realloc uses tmp, so tmp can not be garbage. And the return needs to be checked.