On 12/20/2018 9:36 PM, Winkler, Tomas wrote:
+static void __exit mei_hdcp_exit(void) +{ + mei_hdcp_component_cleanup(&cldev->dev); Don’t think you can do that, no guarantees this will be valid pointer
As we discussed offline, we have the below line at cleanup. So valid pointer is made sure. I will protect init and cleanup with mutex too. +static void mei_hdcp_component_cleanup(struct device *dev) +{ + if (!mei_hdcp_component_registered) + return; -Ram
+ mei_cldev_driver_unregister(mei_hdcp_driver); +} + +module_init(mei_hdcp_init); +module_exit(mei_hdcp_exit);
_______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel