[PATCH 1/1] dri: vc4: set error code on failure

Eric Anholt eric at anholt.net
Fri Dec 9 23:18:37 UTC 2016


Pan Bian <bianpan2016 at 163.com> writes:

> Function vc4_cl_lookup_bos() does not set the error code when
> drm_malloc_ab() returns a NULL pointer, and will return 0 (indicates
> success). This patch fixes the bug, assigning "-ENOMEM" to the return
> variable ret on the path that memory allocation fails.
>
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188631
> Signed-off-by: Pan Bian <bianpan2016 at 163.com>

This one was already fixed in b2cdeb19f16ad984eb5bb9193f793d05a8101511
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161209/4debbbf5/attachment.sig>


More information about the dri-devel mailing list