From 47d86f6b18b2b7edf95a19e7a30853e13410e8dd Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 26 Jul 2023 11:04:07 +0000 Subject: [PATCH] call kref_init() in drm_attach() matching the call in drm_dev_init() --- sys/dev/pci/drm/drm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index 940830493b0..cce43104508 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -1309,6 +1309,7 @@ drm_attach(struct device *parent, struct device *self, void *aux) sc->sc_drm = dev; + kref_init(&dev->ref); dev->dev = self; dev->dev_private = parent; dev->driver = da->driver; -- 2.20.1