From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Jing Xiangfeng <jingxiangfeng@huawei.com> Cc: andreas.noever@gmail.com, michael.jamet@intel.com, mika.westerberg@linux.intel.com, YehezkelShB@gmail.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] thunderbolt: Add the missed ida_simple_remove() in ring_request_msix() Date: Tue, 13 Oct 2020 14:43:25 +0300 Message-ID: <20201013114325.GK4077@smile.fi.intel.com> (raw) In-Reply-To: <20201013024518.195557-1-jingxiangfeng@huawei.com> On Tue, Oct 13, 2020 at 10:45:18AM +0800, Jing Xiangfeng wrote: > ring_request_msix() misses to call ida_simple_remove() in an error path. > Add the missed function call to fix it. ... > ring->irq = pci_irq_vector(ring->nhi->pdev, ring->vector); > - if (ring->irq < 0) > + if (ring->irq < 0) { > + ida_simple_remove(&nhi->msix_ida, ret); > return ring->irq; > + } > > irqflags = no_suspend ? IRQF_NO_SUSPEND : 0; > return request_irq(ring->irq, ring_msix, irqflags, "thunderbolt", ring); According to your logic don't you need it here as well? -- With Best Regards, Andy Shevchenko
next prev parent reply index Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-10-13 2:45 Jing Xiangfeng 2020-10-13 11:43 ` Andy Shevchenko [this message] 2020-10-13 12:33 ` Jing Xiangfeng
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20201013114325.GK4077@smile.fi.intel.com \ --to=andriy.shevchenko@linux.intel.com \ --cc=YehezkelShB@gmail.com \ --cc=andreas.noever@gmail.com \ --cc=gregkh@linuxfoundation.org \ --cc=jingxiangfeng@huawei.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ --cc=michael.jamet@intel.com \ --cc=mika.westerberg@linux.intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Linux-USB Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/linux-usb/0 linux-usb/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 linux-usb linux-usb/ https://lore.kernel.org/linux-usb \ linux-usb@vger.kernel.org public-inbox-index linux-usb Example config snippet for mirrors Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.kernel.vger.linux-usb AGPL code for this site: git clone https://public-inbox.org/public-inbox.git