提交 e89d5b5c 编写于 作者: T Tom St Denis 提交者: Alex Deucher

drm/amd/amdgpu: Fix flow control in uvd_v4_2_stop()

Break out of outer loop properly.
Signed-off-by: NTom St Denis <tom.stdenis@amd.com>
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NChristian König <christian.koenig@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 fce293ca
......@@ -401,6 +401,7 @@ static void uvd_v4_2_stop(struct amdgpu_device *adev)
break;
mdelay(1);
}
if (status & 2)
break;
}
......@@ -411,6 +412,7 @@ static void uvd_v4_2_stop(struct amdgpu_device *adev)
break;
mdelay(1);
}
if (status & 0xf)
break;
}
......@@ -424,6 +426,7 @@ static void uvd_v4_2_stop(struct amdgpu_device *adev)
break;
mdelay(1);
}
if (status & 0x240)
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册