[PATCH] firmware: sysfb: Fix reference count of sysfb parent device

Javier Martinez Canillas javierm at redhat.com
Wed Jun 26 14:47:55 UTC 2024


Thomas Zimmermann <tzimmermann at suse.de> writes:

Hello Thomas,

> Retrieving the system framebuffer's parent device in sysfb_init()
> increments the parent device's reference count. Hence release the
> reference before leaving the init function.
>
> Adding the sysfb platform device acquires and additional reference
> for the parent. This keeps the parent device around while the system
> framebuffer is in use.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
> Fixes: 9eac534db001 ("firmware/sysfb: Set firmware-framebuffer parent device")
> Cc: Thomas Zimmermann <tzimmermann at suse.de>
> Cc: Javier Martinez Canillas <javierm at redhat.com>
> Cc: Helge Deller <deller at gmx.de>
> Cc: Jani Nikula <jani.nikula at intel.com>
> Cc: Dan Carpenter <dan.carpenter at linaro.org>
> Cc: Arnd Bergmann <arnd at arndb.de>
> Cc: Sui Jingfeng <suijingfeng at loongson.cn>
> Cc: <stable at vger.kernel.org> # v6.9+
> ---

Looks good to me.

Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat



More information about the dri-devel mailing list