Re: [PATCH v5 2/7] drm/client: Do not acquire module reference

2023-11-01 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Do not acquire a reference on the module that provides a client's > callback functions in drm_client_init(). The additional reference > prevents the user from unloading the callback functions' module and > thus creating dangling pointers. > > This is only necessary if

[PATCH v5 2/7] drm/client: Do not acquire module reference

2023-09-27 Thread Thomas Zimmermann
Do not acquire a reference on the module that provides a client's callback functions in drm_client_init(). The additional reference prevents the user from unloading the callback functions' module and thus creating dangling pointers. This is only necessary if there is no direct dependency between t