Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3054314imm; Sun, 1 Jul 2018 11:10:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeyMnUQV4FLVvRJvanLQe3d9hYemv31uBZxgvMZksc2KV5tYfJKhWRe4blj5sbijiEYraym X-Received: by 2002:a62:464f:: with SMTP id t76-v6mr4308811pfa.118.1530468615301; Sun, 01 Jul 2018 11:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530468615; cv=none; d=google.com; s=arc-20160816; b=PvdBNcSUDoGGyHRN14MFfcbnnd5MdJVH6jO46wOPhJtpMS3Cjq8xKueKErCNrgx/RN 8V+LZG/D7Ox2yj+w15jks5br+ukRcGGJenqZK3t4xhPcTl6LxJlYqIxXZRD59GzpPRXx OW7X/OZlOfCJQk9Ha/Bq6Alal4lJh8HG9YaKUR7dxk8vChG1LYYZb7dp7htF/GISYG2Y vFrdO2UWBEApMi0Nl5NJfvwpnUrC60lqJxQYl3Y5HyQBwMaY/KvHFEAYNrzZc+Q/1FlC kFQJ920nkRhNpgI9JmloljqNDwlCarmjWTtCVfXYm8eTvUteLSuW/l+raOgMp4Wcv8bU VWyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=5Oj8xYtmQqYPnflCltWzmS6pgPRjgTt30/zHY1qDxTA=; b=MLUbCE5JEQcL4kTID4NmQE6z8yThJ7sGKK5EUhqgWEV7z4kj5rIxnJgrODBF1KJO8R 0PSXzCpgV7/lpEpcLOgRiXeCxwEVYYI5+cAiqxhWccv89wRGJ82vEgX3iRWavbOYZAmH T3P0Rm3CEsRQiJuC/Ci0bHLBrkGTMnLJ4HrUFdm2z3i+nVrWrG1ftxvMrIcvhFvUAS9t NSwCrzcwmAONG4CG/DeOGqZzM/HNOz86I07ZWEEXV0eTV1E21b1CuIhDxlaFuHTvmegY 0YaLdCPtREEeEzD3hCIJZLr65QLDWRa7Wy0gSBk/aAG4WEJ//B1MqhfhK0KOkhGA7LAu 9n0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18-v6si11661047pfl.209.2018.07.01.11.10.00; Sun, 01 Jul 2018 11:10:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965673AbeGAQ2d (ORCPT + 99 others); Sun, 1 Jul 2018 12:28:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34312 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965434AbeGAQ2Y (ORCPT ); Sun, 1 Jul 2018 12:28:24 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1289492B; Sun, 1 Jul 2018 16:28:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Hutchings , Boris Ostrovsky , Juergen Gross Subject: [PATCH 4.9 092/101] xen: Remove unnecessary BUG_ON from __unbind_from_irq() Date: Sun, 1 Jul 2018 18:22:18 +0200 Message-Id: <20180701160800.838487213@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160757.138608453@linuxfoundation.org> References: <20180701160757.138608453@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Boris Ostrovsky commit eef04c7b3786ff0c9cb1019278b6c6c2ea0ad4ff upstream. Commit 910f8befdf5b ("xen/pirq: fix error path cleanup when binding MSIs") fixed a couple of errors in error cleanup path of xen_bind_pirq_msi_to_irq(). This cleanup allowed a call to __unbind_from_irq() with an unbound irq, which would result in triggering the BUG_ON there. Since there is really no reason for the BUG_ON (xen_free_irq() can operate on unbound irqs) we can remove it. Reported-by: Ben Hutchings Signed-off-by: Boris Ostrovsky Cc: stable@vger.kernel.org Reviewed-by: Juergen Gross Signed-off-by: Juergen Gross Signed-off-by: Greg Kroah-Hartman --- drivers/xen/events/events_base.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -637,8 +637,6 @@ static void __unbind_from_irq(unsigned i xen_irq_info_cleanup(info); } - BUG_ON(info_for_irq(irq)->type == IRQT_UNBOUND); - xen_free_irq(irq); }