diff options
author | Thomas Zimmermann <[email protected]> | 2021-11-30 10:52:55 +0100 |
---|---|---|
committer | Thomas Zimmermann <[email protected]> | 2021-12-02 11:12:39 +0100 |
commit | 4ff22f487f8c26b99cbe1678344595734c001a39 (patch) | |
tree | 02fd49b249e5a1e9d4242caa88668d91fdf65d72 /lib/mpi/mpi-sub-ui.c | |
parent | 2696f9010d21aee60be06b2135806e11c79ded8b (diff) |
drm: Return error codes from struct drm_driver.gem_create_object
GEM helper libraries use struct drm_driver.gem_create_object to let
drivers override GEM object allocation. On failure, the call returns
NULL.
Change the semantics to make the calls return a pointer-encoded error.
This aligns the callback with its callers. Fixes the ingenic driver,
which already returns an error pointer.
Also update the callers to handle the involved types more strictly.
Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Steven Price <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions