forked from luck/tmp_suning_uos_patched
drm: radeon: fix error value sign
enable_vblank implementations should use negative result to indicate error. radeon_enable_vblank() returns EINVAL in this case. Change this to -EINVAL. Signed-off-by: Vasiliy Kulikov <segoon@openwall.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
16790569ed
commit
21e2eae4da
@ -76,7 +76,7 @@ int radeon_enable_vblank(struct drm_device *dev, int crtc)
|
|||||||
default:
|
default:
|
||||||
DRM_ERROR("tried to enable vblank on non-existent crtc %d\n",
|
DRM_ERROR("tried to enable vblank on non-existent crtc %d\n",
|
||||||
crtc);
|
crtc);
|
||||||
return EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (crtc) {
|
switch (crtc) {
|
||||||
@ -89,7 +89,7 @@ int radeon_enable_vblank(struct drm_device *dev, int crtc)
|
|||||||
default:
|
default:
|
||||||
DRM_ERROR("tried to enable vblank on non-existent crtc %d\n",
|
DRM_ERROR("tried to enable vblank on non-existent crtc %d\n",
|
||||||
crtc);
|
crtc);
|
||||||
return EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user