In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: handle amdgpucgscreatedevice() errors in amdpowerplaycreate() Add error handling to propagate amdgpucgscreatedevice() failures to the caller. When amdgpucgscreate_device() fails, release hwmgr and return -ENOMEM to prevent null pointer dereference. [v1]->[v2]: Change error code from -EINVAL to -ENOMEM. Free hwmgr.