]> git.baikalelectronics.ru Git - kernel.git/commit
drm/qxl: Propagate correctly errors from qxlhw_handle_to_bo
authorFrediano Ziglio <fziglio@redhat.com>
Wed, 3 Jun 2015 11:09:19 +0000 (12:09 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 5 Jun 2015 01:00:52 +0000 (11:00 +1000)
commit91323533bcd19517e24e1d22ee739c5bace5d113
tree59660e9a96005484be131735074182a043581303
parent917d80f51af4fa59ef488af2be556c67935b5bbb
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>
drivers/gpu/drm/qxl/qxl_ioctl.c