Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1745955pxb; Thu, 4 Feb 2021 23:47:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrPSgMdPYmLg/bL3pkYZHh0YzJ7HUTqkxGSe6byC4rJiBWkpHCS8ynCLqk1/Yx+NONWd5Z X-Received: by 2002:a17:906:2743:: with SMTP id a3mr2960838ejd.378.1612511253416; Thu, 04 Feb 2021 23:47:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612511253; cv=none; d=google.com; s=arc-20160816; b=UbAl0P7V+KgFUMQvIPotGMDERcSLgyC21KYM4wFJgZ6WQN07GtHJCjqdH8nzMqETJd wXfGoZ6Rt+LkcT/edUO0ZFn+LHYWYaJMIRf+INpJVttZBjzhLbNock2897WJEmf8Qhx1 OH8nVyOrQs+/EVde7AFUroa/pe3fyS/JmqXmgfCeh2+XKFMu41rNImni8uff9O8PDcS3 slB2TcB2Bjur1oq4CG/P3BRN8JGOpSFPC2bdv3D87kKAwaeD3juM2zbSF0H7KVz3nYbq SERNhrAgeIZ4RDoMJDJCHOr6HZ+lH+BXPOC9nsHWbjpRp/QcfOBj8nKr4pLcVwrcTiit k60Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QkctUj4JntN0l9IjN3mm31aWsWyPBr920PgHhtiFxa4=; b=PLHRxbOT5HvrBDUcIekiho80rBmmKk3Wb3Ee8vX9fMu+K0O9S0ErwDWVcQZeCk7MWk xL7Ctwid1RUbk9z9IWKHNTBxIFt90fmZVr8Eto/spi9G4lX5r5xYgqpMSVYJJu1g4LTU 70fDPFQjMlHUVNHUS/nFFyZy6pzjqE+hpCBuaFDTU3NwFs9R3ZIuiGI2m5OthAgoRbsB neJ5aJrMss9rLrUHqs2nhPoSzEuw57byZFFfRNHtApTu+rqlUU6M82GFi30O8VB4d2Z/ QjsFM7z4gh82AJXQrBoEOwKgfV3jKuDHZGZ6WlmMcB7sI/d+x4Af+sYikKGjCb9PSMq5 8cVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="K2WCE6/y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si3906143edj.425.2021.02.04.23.47.08; Thu, 04 Feb 2021 23:47:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="K2WCE6/y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231551AbhBEHpE (ORCPT + 99 others); Fri, 5 Feb 2021 02:45:04 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:31749 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231466AbhBEHpC (ORCPT ); Fri, 5 Feb 2021 02:45:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612511016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QkctUj4JntN0l9IjN3mm31aWsWyPBr920PgHhtiFxa4=; b=K2WCE6/yn+0pm+1o9GnzpbMki9nz0SdXy4NWpoynMoZ7xEv6RCyRpbBvCAo2Ff+NhvLUyh aBfPAQWTTjC6NaTnyn1FycU08WHksddYC65ozmVhKDNrtPs1mOlX5vC8AsS8UMStfypzze Caxg+nsMsX1OCox+BaR0xt/JJvXmlDE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-502-Id3HAsG6MuSpw28xyN0ZAw-1; Fri, 05 Feb 2021 02:43:33 -0500 X-MC-Unique: Id3HAsG6MuSpw28xyN0ZAw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EECD5192CC41; Fri, 5 Feb 2021 07:43:31 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-113-108.ams2.redhat.com [10.36.113.108]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF35C5C1B4; Fri, 5 Feb 2021 07:43:31 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 35D6918000B6; Fri, 5 Feb 2021 08:43:30 +0100 (CET) Date: Fri, 5 Feb 2021 08:43:30 +0100 From: Gerd Hoffmann To: Tong Zhang Cc: Dave Airlie , David Airlie , Daniel Vetter , virtualization@lists.linux-foundation.org, spice-devel@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] drm/qxl: do not run release if qxl failed to init Message-ID: <20210205074330.zsb2lg5umgkxh2p3@sirius.home.kraxel.org> References: <20210204163050.1232756-1-ztong0001@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210204163050.1232756-1-ztong0001@gmail.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 04, 2021 at 11:30:50AM -0500, Tong Zhang wrote: > if qxl_device_init() fail, drm device will not be registered, > in this case, do not run qxl_drm_release() How do you trigger this? take care, Gerd