From ef536df52e0e823c0e3d7598a9f2edcf752e43e1 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Wed, 17 Jul 2019 07:54:19 +0000 Subject: don't free dev_priv (softc) in i915_driver_load() error path --- sys/dev/pci/drm/i915/i915_drv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') diff --git a/sys/dev/pci/drm/i915/i915_drv.c b/sys/dev/pci/drm/i915/i915_drv.c index c3fbdf5ce79..f0cdd46a147 100644 --- a/sys/dev/pci/drm/i915/i915_drv.c +++ b/sys/dev/pci/drm/i915/i915_drv.c @@ -1644,7 +1644,9 @@ out_fini: drm_dev_fini(&dev_priv->drm); out_free: #endif +#ifdef __linux__ kfree(dev_priv); +#endif pci_set_drvdata(pdev, NULL); return ret; } -- cgit v1.2.3