diff options
Diffstat (limited to 'bsd-core/i915_drv.c')
-rw-r--r-- | bsd-core/i915_drv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bsd-core/i915_drv.c b/bsd-core/i915_drv.c index 71a8d64d..7e745190 100644 --- a/bsd-core/i915_drv.c +++ b/bsd-core/i915_drv.c @@ -122,10 +122,13 @@ static int i915_detach(device_t nbdev) { struct drm_device *dev = device_get_softc(nbdev); + int ret; + + ret = drm_detach(nbdev); free(dev->driver, M_DRM); - return drm_detach(nbdev); + return ret; } static device_method_t i915_methods[] = { |