From: jsg Date: Tue, 5 May 2015 02:01:10 +0000 (+0000) Subject: fix a return path that lacked a rw_exit_write() call X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1cf75e52296f4f2a33e06edb057043ed0fcfa754;p=openbsd fix a return path that lacked a rw_exit_write() call ok kettenis@ --- diff --git a/sys/dev/pci/drm/drm_crtc.c b/sys/dev/pci/drm/drm_crtc.c index 8c81e210083..7141fa08cf7 100644 --- a/sys/dev/pci/drm/drm_crtc.c +++ b/sys/dev/pci/drm/drm_crtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_crtc.c,v 1.16 2015/04/06 09:23:19 jsg Exp $ */ +/* $OpenBSD: drm_crtc.c,v 1.17 2015/05/05 02:01:10 jsg Exp $ */ /* * Copyright (c) 2006-2008 Intel Corporation * Copyright (c) 2007 Dave Airlie @@ -288,7 +288,7 @@ struct drm_mode_object *drm_mode_object_find(struct drm_device *dev, obj = han->obj; if (obj->type != type) { - return NULL; + obj = NULL; } rw_exit_write(&dev->mode_config.idr_rwl);