drm/fb-helper: Check fb_deferred_io_init() return value
authorJavier Martinez Canillas <javierm@redhat.com>
Sat, 21 Jan 2023 19:24:17 +0000 (20:24 +0100)
committerJavier Martinez Canillas <javierm@redhat.com>
Tue, 24 Jan 2023 10:13:07 +0000 (11:13 +0100)
commitcc88ad784e42398b8845594fe3aa720d0cc1c40c
treedf5ed7bfac41336684a5185a7377b0cc87f648b4
parent0220e4fe178c3390eb0291cdb34912d66972db8a
drm/fb-helper: Check fb_deferred_io_init() return value

The fb_deferred_io_init() can fail and return an errno code but currently
there is no check for its return value.

Fix that and propagate to errno to the caller in the case of a failure.

Fixes: d536540f304c ("drm/fb-helper: Add generic fbdev emulation .fb_probe function")
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230121192418.2814955-3-javierm@redhat.com
drivers/gpu/drm/drm_fbdev_generic.c