Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2988957imm; Sun, 1 Jul 2018 09:48:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc9EVeiNyNhap6zOOCnS0WseTNnnF9OfWydrv7BiHX2eVoDWwxzfOWQiH1MfJuQUTl2M0kD X-Received: by 2002:a63:4951:: with SMTP id y17-v6mr1358983pgk.32.1530463712934; Sun, 01 Jul 2018 09:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530463712; cv=none; d=google.com; s=arc-20160816; b=WuL1seaO4LU6AXSCL/OFcagBi+BEbusukVXUVyq6v2gq+vvxt4dUK43Mooz0Hb57cm rjAVZTLNYQTYdHd3fcBpc7KFUeD9rOL9fjTsQ5w4IJybfe6QUbfAZNbnHgmuYGEyY4F1 P70TmEm2/SsHktWENRvGeiU2A1zM8qTliWBoZ2qJ6R9ZIzPS+sqzniYaY0jOdbyopGw3 ttDPSI4IBF9r7D7gZSYblw69ezJMiuo8+WKhAGQSGPrWwoEh8ukKesrGMJDLUpGbNYZY u7HTFLV4/dKg4tlUgoToz7Bo+p2cFvbfPVZSxCK4TU1LgisfqS17DL7/TOZzUhlktvpl aEew== 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=3BOEpTp2Uv4jyUPMa9am9/Tre3l/c4YfcVhnINqRWlE=; b=bBG4taOyKLAMfMdsiIqYZdJu6L0DQ1sltEMD0SSqx8uxz0ml/K4mz8w3LXileVDfSw cko3xosBBHqKcnwAeZddYHVoeRUZLj9nUvEYpzHAGI/TLzEY+hgvL8Cp604gxk7aTYv/ DiNhfJawiO1Xju+4pWrMFmFl6TdjC1I9sxLmKbh14pbjbsjTFIVXPDljh7GS3i0ospjc BF2iL9FfptmVcx+M8ONSTOVqT3ozlt5BMu5jw5m/8XzZDlL+C5GL0jL0s3is1rXJM4rx HdHHZzzVaI2mTI0+JRGfdqk2V+oB+IFvLVNojMcGyl1nxCffqXGpl5CDoSi1Lsk0oEjv qH8A== 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.09.48.18; Sun, 01 Jul 2018 09:48:32 -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 S1032629AbeGAQrK (ORCPT + 99 others); Sun, 1 Jul 2018 12:47:10 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38604 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032581AbeGAQrE (ORCPT ); Sun, 1 Jul 2018 12:47:04 -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 855A3ACD; Sun, 1 Jul 2018 16:47:03 +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.17 193/220] xen: Remove unnecessary BUG_ON from __unbind_from_irq() Date: Sun, 1 Jul 2018 18:23:37 +0200 Message-Id: <20180701160916.253155742@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@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.17-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 @@ -628,8 +628,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); }