]> 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)
commit5df652c9b41d1ef11a62c13998bb32fcf30a5f72
tree59660e9a96005484be131735074182a043581303
parent108b6195b41aad7a4adbf40c9283043d8daa530f
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