In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Check for potential null return of kmallocarray() As the kmallocarray() may return null, the 'eventwaiters[i].wait' would lead to null-pointer dereference. Therefore, it is better to check the return value of kmallocarray() to avoid this confusion.