Re: [PATCH] drm/amdkfd: Check for null pointer after calling kmemdup

2022-01-10 Thread Felix Kuehling
On 2022-01-05 10:56 a.m., Felix Kuehling wrote: Am 2022-01-05 um 4:09 a.m. schrieb Jiasheng Jiang: As the possible failure of the allocation, kmemdup() may return NULL pointer. Therefore, it should be better to check the 'props2' in order to prevent the dereference of NULL pointer. Fixes: 3a871

Re: [PATCH] drm/amdkfd: Check for null pointer after calling kmemdup

2022-01-05 Thread Felix Kuehling
Am 2022-01-05 um 4:09 a.m. schrieb Jiasheng Jiang: > As the possible failure of the allocation, kmemdup() may return NULL > pointer. > Therefore, it should be better to check the 'props2' in order to prevent > the dereference of NULL pointer. > > Fixes: 3a87177eb141 ("drm/amdkfd: Add topology suppo