forked from Minki/linux
bfaa1ce809
The call to kfd_device_by_id can potentially return null, so check that
dev is null and return with -EINVAL to avoid a null pointer dereference.
Detected by CoverityScan CID#1454629 ("Dereference null return value")
Fixes:
|
||
---|---|---|
.. | ||
acp | ||
amdgpu | ||
amdkfd | ||
include | ||
powerplay | ||
scheduler |