From nobody Wed May 15 17:54:51 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1692695535; cv=none; d=zohomail.com; s=zohoarc; b=DUavNGrZTggnLHfbO0jC3V6MLyi6qgv4n0yeTA6xb4PI6/9NXC2sVz4r3ddvmIsmGf+GU0cZtvlJ8t8XKhlPa05PrjtKhYfMWwgEhWXuDAXGWeBM26SEG/kte2uNkvLp26dktm0Q5LKFBYpyr3EeDEC9b3ilt6bCHs1R/2Ne3xg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692695535; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=rgRK/+wO5bE0BEKzv9bthbQwjatmS8j+HdBI8x6U6ZM=; b=VReIW8i1aAe9D4j03FINncvtdJ8g1UODbYpPbEiSag7cNPU0n0l/xoghB4JKd3mPWoytRYNWJYARotBI/mcGcLtP3ySLpGUkKHAgX6eLglSuPqsBJDxigK0Yj5LjR52i0CMb44U/GAukrdwDXYMTJYYgiUV40OCkWLE21cE52ng= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1692695535053759.3051115941103; Tue, 22 Aug 2023 02:12:15 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.588327.919823 (Exim 4.92) (envelope-from ) id 1qYNQO-0000RD-NC; Tue, 22 Aug 2023 09:11:44 +0000 Received: by outflank-mailman (output) from mailman id 588327.919823; Tue, 22 Aug 2023 09:11:44 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qYNQO-0000R6-KO; Tue, 22 Aug 2023 09:11:44 +0000 Received: by outflank-mailman (input) for mailman id 588327; Tue, 22 Aug 2023 09:11:44 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qYNQN-0000R0-V8 for xen-devel@lists.xenproject.org; Tue, 22 Aug 2023 09:11:43 +0000 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id e86ac024-40cb-11ee-9b0c-b553b5be7939; Tue, 22 Aug 2023 11:11:41 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id EE0E122C00; Tue, 22 Aug 2023 09:11:40 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B8EB4132B9; Tue, 22 Aug 2023 09:11:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id pJfbK8x75GTrfgAAMHmgww (envelope-from ); Tue, 22 Aug 2023 09:11:40 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: e86ac024-40cb-11ee-9b0c-b553b5be7939 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1692695500; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=rgRK/+wO5bE0BEKzv9bthbQwjatmS8j+HdBI8x6U6ZM=; b=ldBC8Xui7pYT0R3+ZDSRwHnMWOPZaCvMEJFGV432hd/Ebc4h9Fb5G+0AAxF4hZ44nhUyV/ LVPbuuMW68UqWaFRKfma4SDWDPkl4aM68Hxn1zBPFQJffjW2An5eV7jvL8YXllGWuDoXF7 gRSsJd70t4TZfXmTPK0NFSyxMsKF9yE= From: Juergen Gross To: linux-kernel@vger.kernel.org Cc: Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , xen-devel@lists.xenproject.org, kernel test robot , Dan Carpenter Subject: [PATCH] xenbus: fix error exit in xenbus_init() Date: Tue, 22 Aug 2023 11:11:38 +0200 Message-Id: <20230822091138.4765-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1692695535653100001 Content-Type: text/plain; charset="utf-8" In case an error occurs in xenbus_init(), xen_store_domain_type should be set to XS_UNKNOWN. Fix one instance where this action is missing. Fixes: 5b3353949e89 ("xen: add support for initializing xenstore later as H= VM domain") Reported-by: kernel test robot Reported-by: Dan Carpenter Link: https://lore.kernel.org/r/202304200845.w7m4kXZr-lkp@intel.com/ Signed-off-by: Juergen Gross Reviewed-by: Oleksandr Tyshchenko --- drivers/xen/xenbus/xenbus_probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_= probe.c index 639bf628389b..3205e5d724c8 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c @@ -1025,7 +1025,7 @@ static int __init xenbus_init(void) if (err < 0) { pr_err("xenstore_late_init couldn't bind irq err=3D%d\n", err); - return err; + goto out_error; } =20 xs_init_irq =3D err; --=20 2.35.3