mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
drm/amdgpu/cik_sdma: replace BUG() with an error
There's no need to crash the kernel for this case. Reviewed-by: Kent Russell <kent.russell@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c6b4a50801
commit
1804cde52d
|
|
@ -125,7 +125,8 @@ static int cik_sdma_init_microcode(struct amdgpu_device *adev)
|
|||
case CHIP_MULLINS:
|
||||
chip_name = "mullins";
|
||||
break;
|
||||
default: BUG();
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
for (i = 0; i < adev->sdma.num_instances; i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user