From patchwork Thu Jan 27 21:46:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TWFyZWsgT2zFocOhaw==?= X-Patchwork-Id: 513271 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0RLtYOb015563 for ; Thu, 27 Jan 2011 21:55:54 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0E6EE9EB55 for ; Thu, 27 Jan 2011 13:55:34 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ew0-f49.google.com (mail-ew0-f49.google.com [209.85.215.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 0B7C09ECE0 for ; Thu, 27 Jan 2011 13:54:52 -0800 (PST) Received: by ewy20 with SMTP id 20so1157327ewy.36 for ; Thu, 27 Jan 2011 13:54:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :mime-version:content-type:content-transfer-encoding; bh=AtbjJgF8od01s3js3XzX4awBoTjJb4hMB74AI9krGM8=; b=DlEF0ewGWgfXO5uQdaGCglehvKqqP/gF1F9vh3q7aImc6z0FqHPCl9R7HqqPB+wYD6 ZHbTZZbc0OshPomVp29czgG52NYLGStlpYAVwBk/xoKUA9HPTE86h3zWu7dg27FFFDXd X2caHlBGlUgrM9cjQgcifoFCVwMfrwLFx8TzU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; b=fovKFLgI0m6ym/MQdidavx8izMJN8aHGhG4gwQRiBcVBaOjLKvQzfETLiq0UyEJj+b /pNdulu+j8RU3wNu+7ZlllmmqXh5VaP0f65AkLKJDirbupN1otfBGENjQdb9w14giu/h 6CKE9Y1KevbVYKUs5YDKjvRdLrn2J32Xtaz0g= Received: by 10.204.123.144 with SMTP id p16mr1785352bkr.25.1296164783031; Thu, 27 Jan 2011 13:46:23 -0800 (PST) Received: from localhost.localdomain (ip-89-103-73-143.net.upcbroadband.cz [89.103.73.143]) by mx.google.com with ESMTPS id rc9sm6947411bkb.14.2011.01.27.13.46.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 Jan 2011 13:46:22 -0800 (PST) From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon/kms: release CMASK access in preclose_kms Date: Thu, 27 Jan 2011 22:46:15 +0100 Message-Id: <1296164775-2492-1-git-send-email-maraeo@gmail.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 27 Jan 2011 21:55:54 +0000 (UTC) X-MIME-Autoconverted: from base64 to 8bit by demeter1.kernel.org id p0RLtYOb015563 diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c index 28a53e4..a794e17 100644 --- a/drivers/gpu/drm/radeon/radeon_kms.c +++ b/drivers/gpu/drm/radeon/radeon_kms.c @@ -243,6 +243,8 @@ void radeon_driver_preclose_kms(struct drm_device *dev, struct radeon_device *rdev = dev->dev_private; if (rdev->hyperz_filp == file_priv) rdev->hyperz_filp = NULL; + if (rdev->cmask_filp == file_priv) + rdev->cmask_filp = NULL; } /*