diff options
author | 2019-07-17 07:54:18 +0000 | |
---|---|---|
committer | 2019-07-17 07:54:18 +0000 | |
commit | 21e5c5462ae881e4487093b1026955e517ecdf15 (patch) | |
tree | 4de963d190b718d024732cd0f4130d15d7037c51 | |
parent | vmm/vmd: Fix migration with pvclock (diff) | |
download | wireguard-openbsd-21e5c5462ae881e4487093b1026955e517ecdf15.tar.xz wireguard-openbsd-21e5c5462ae881e4487093b1026955e517ecdf15.zip |
don't free dev_priv (softc) in i915_driver_load() error path
-rw-r--r-- | sys/dev/pci/drm/i915/i915_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |