From: jsg Date: Wed, 26 Jul 2023 11:04:07 +0000 (+0000) Subject: call kref_init() in drm_attach() matching the call in drm_dev_init() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=47d86f6b18b2b7edf95a19e7a30853e13410e8dd;p=openbsd call kref_init() in drm_attach() matching the call in drm_dev_init() --- 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;