diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2015-06-03 12:09:19 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-06-05 11:00:52 +1000 |
commit | ef1316961048988c6d044a298b5842c8288cc35b (patch) | |
tree | 59660e9a96005484be131735074182a043581303 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | 74d9a6335dceb81a55821ac72daaa8f1c1554a83 (diff) |
drm/qxl: Propagate correctly errors from qxlhw_handle_to_bo
This function could return a NULL pointer in case of handle not
present and in case of out of memory conditions however caller
function always returned EINVAL error hiding a possible ENOMEM.
This patch change the function to return the error instead to
be able to propagate the error instead of assuming EINVAL.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions