Re: [Spice-devel] [PATCH 11/11] Propagate correctly errors from qxlhw_handle_to_bo

2015-05-27 Thread Dave Airlie
On 27 May 2015 at 20:04, Frediano Ziglio wrote: > 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

[PATCH 11/11] Propagate correctly errors from qxlhw_handle_to_bo

2015-05-27 Thread Frediano Ziglio
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 assu