commit | 32cf90a521dcc0f136db7ee5ba32bfe5f79e460e | [log] [tgz] |
---|---|---|
author | QintaoShen <unSimple1993@163.com> | Thu Mar 24 16:26:23 2022 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Apr 20 09:06:45 2022 +0200 |
tree | d76862f8144ec29822a201ab3b122469d2cc26a0 | |
parent | 3e582749e742e662a8e9bb37cffac62dccaaa1e2 [diff] |
drm/amdkfd: Check for potential null return of kmalloc_array() [ Upstream commit ebbb7bb9e80305820dc2328a371c1b35679f2667 ] As the kmalloc_array() may return null, the 'event_waiters[i].wait' would lead to null-pointer dereference. Therefore, it is better to check the return value of kmalloc_array() to avoid this confusion. Signed-off-by: QintaoShen <unSimple1993@163.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>