drm/vmwgfx: Add a check to handle host message failure
Discovered by static code analysis tool. If for some reason communication with the host fails more than preset number of retries, return an error instead of return garbage. Signed-off-by: NSinclair Yeh <syeh@vmware.com> Reviewed-by: NCharmaine Lee <charmainel@vmware.com> Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Showing
想要评论请 注册 或 登录