Article View: linux.kernel.netdev
Article #26939[PATCH net] qlcnic: Fix potential interrupt table leak on setup failure
From: Guangshuo Li
Date: Fri, 04 Dec 2026 13:03
Date: Fri, 04 Dec 2026 13:03
36 lines
9584 bytes
9584 bytes
The 82xx interrupt setup leaves intr_tbl allocated when firmware
configuration fails. A later open allocates another table and overwrites
the saved pointer.
Release the new table and clear its pointer on configuration failure.
This issue was found by our static analysis tool under development.
Fixes: 012ec81223aa ("qlcnic: Multi Tx queue support for 82xx Series adapter.")
Signed-off-by: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
---
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
index ff4f7cd20c79..ddd0c51dca10 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
@@ -897,10 +897,13 @@ int qlcnic_82xx_mq_intrpt(struct qlcnic_adapter *adapter, int op_type)
}
err = qlcnic_82xx_config_intrpt(adapter, 1);
- if (err)
+ if (err) {
dev_err(&adapter->pdev->dev,
"Failed to configure Interrupt for %d vector\n",
ahw->num_msix);
+ vfree(ahw->intr_tbl);
+ ahw->intr_tbl = NULL;
+ }
return err;
}
base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
Technical Details
Message-ID:
<20261204130344.2418717-1-liguangshuo@mail.sdu.edu.cn>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377371-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377371-linux-kernel-netdev=dewy.ru From: liguangshuo@mail.sdu.edu.cn (Guangshuo Li) Newsgroups: linux.kernel.netdev Subject: [PATCH net] qlcnic: Fix potential interrupt table leak on setup failure Date: Fri, 4 Dec 2026 21:03:44 +0800 Organization: Usenet Network Message-ID: <20261204130344.2418717-1-liguangshuo@mail.sdu.edu.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2767880"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:zgzcvtDGKq37lC9TNhRdWPa7oLU= sha256:qhMFaqoAdn8x6k+pyuRKTE7pSzUO/dNsUA2hQzyUbEM= sha1:2125bnhC4aUc5UoLeTSKjryOV0E= sha256:LTrK4EgQHaXBPRDDyH7z/nvDekquh8s4vkFzt69sqXc= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 9FFE0117BFD; Fri, 4 Dec 2026 16:04:13 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.298 X-Spam-Status: No, score=-3.298 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=mail.sdu.edu.cn X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vK9bFIyb-Vji; Fri, 4 Dec 2026 16:04:10 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377371-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=mail.sdu.edu.cn X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 29BA8117BD7; Fri, 4 Dec 2026 16:04:01 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 599A688BE5; Fri, 4 Dec 2026 13:03:59 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796389439; b=njGrhERT6nEqrsPsuKy44bQVLrVJZkWj0mGacP4N2vw7m4I8ZbS3P/OY1gwqd9KqSRV3 cP5vIjwDy/GFTwFwkTF84lWhbnXb6yJb5QJduRACD/Kuv1SgAtrN0Idaj3IeZZ2zr3btk caEF0uMEyUcggUusLRjUnmDWjp1a/6akr8tup0TG4ykIaGepZupuon9aMs1yKo4bXHGT7 X2OZ4ud2Sjg5qS14zFV0ARhqvJ35xCAI0g7DiK3G9HLW7mkZ4EBJQUjlCEgW+4i1QR4lg dXAVPppfbedI1DTMRT89OBGr3iU0sZ0FPl/839xbDgS0w7JEwzrMxHLPHjT2RPia4Yw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796389439; h=X-Original-To:Received:DMARC-Filter:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:X-HM-Tid:X-HM-MType:X-HM-Spam-Status: DKIM-Signature; bh=CuMb9fAQY4TEnBxORNG0C/pPcXsP2EatYPLA/TeR2Pw=; b=Ff4OCzsLcZicQH4LTKvrD+XUsiF3hrF/ze+O/kvUpr1leJlJW9bc1EAJr/rQ0Zg6R5uq F+ZU0u4WGhJq0uFsx/ZghBMP2rcPDjHwrG+34gwpqmXzlbPcC9GCZbXxGssa5OeejzKqo mFIthlzGdRf5Df7oghxMqZnt2R1s/8CduaGiCsr1yuOW0acz3XeDvsx7WdbGFfEeTeto5 PhnY+bCuoa2kuk9i9MW4IB24V77eqp9LheW8+yZst6Db8O/sc5+SghRGcJP/WW1Mz/Vu2 DrPZrClzciZxbIMmKlB5ByhNiqEFpev52kdfhK5A2jE70fImrdirekuD9Fify5e5q6g== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=mail.sdu.edu.cn header.i=@mail.sdu.edu.cn header.a=rsa-sha256 header.s=default header.b=QZ2GtWWM; dmarc=pass header.from=mail.sdu.edu.cn; spf=pass smtp.mailfrom=mail.sdu.edu.cn; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30760606A339; Fri, 4 Dec 2026 13:03:59 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mail.sdu.edu.cn header.i=@mail.sdu.edu.cn header.a=rsa-sha256 header.s=default header.b=QZ2GtWWM X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=101.71.155.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796389433; b=XEeZIE6tT9e9Q7Mev4TN66sVlyi2fFW//OVnNxh61Ve8y1c9Sr3ETGWxjfUtDYVtUQpf qF/KE39KV7iTZ7Qxp8+rElFyf0/VK12HNGU8XWzbv5x4v2BlALVggsovg6JnhHSVEM4Gx 1GQL53Xh/zLwSXljdJDTcUKnfaq2mpBTE3lEOXUZ0AUobwQLuH/PhKdOuRlJ8R+n6ecI7 5Z4MjSVbkpog2FJTFOH4AQ+r27MZ5CpRK4SZ7uE9QVf95gzQ5ebloj4bIMVqus/J8YYM+ LnXqQEGWTU9KMS2STnLx0jsmi7b1Om3Axl9P7QoRAJxC+t+I9OK3eQVSBEpmaUCL6Fg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796389433; h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding:X-HM-Tid:X-HM-MType: X-HM-Spam-Status:DKIM-Signature; bh=CuMb9fAQY4TEnBxORNG0C/pPcXsP2EatYPLA/TeR2Pw=; b=JcC8h+7lYlP349rvGDi5yKG4aIPX47XZfpPpCLIDzleaSkHqH3GLwwLj6r0dgoaBGn0d 4tmW7SfVYtQlXt0Eo9vMRenr/Q1kSozkiXw5SpRl6Bb4F6EHQPiMU2X+4cg/23y4JbQg0 315nLJFqk3abRsgTxN2j+W7aV6DS1nwLbdYTQhsRl/Xa90T/PWUoAfUzIoUFsCfiROFJe P3yyCoP0cdgUE6bCxKNlR/5e4hsbuScEXhSEJqbadwPINO3cn8jhIYIRrhwQZfDsPXhWB aTA82VeRjSl/mw0Wo6waPMLOqz0A+Vau19cCRUCxA6aTNm7sPjqZ71pIlE/d8KGqXQw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mail.sdu.edu.cn; spf=pass smtp.mailfrom=mail.sdu.edu.cn; dkim=pass header.d=mail.sdu.edu.cn header.i=@mail.sdu.edu.cn header.a=rsa-sha256 header.s=default header.b=QZ2GtWWM; arc=none smtp.remote-ip=101.71.155.101 X-Received: from mail-m155101.qiye.163.com (mail-m155101.qiye.163.com [101.71.155.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23766606A32C; Fri, 4 Dec 2026 13:03:50 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 23766606A32C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mail.sdu.edu.cn X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mail.sdu.edu.cn X-Received: from lgs.. (unknown [101.76.249.61]) by smtp.qiye.163.com (Hmail) with ESMTP id 6fc254e45; Fri, 4 Dec 2026 21:03:45 +0800 (GMT+08:00) X-Cc: manishc@marvell.com, gr-linux-nic-dev@marvell.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, himanshu.madhani@qlogic.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: git-send-email 2.43.0 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-HM-Tid: 0aa24127503c03a1kunmf93ad3c04d620 X-HM-MType: 10 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVlCHUweVk4aShgaSEweSUsZTVYeHw 5VEwETFhoSFyQUDg9ZV1kYEgtZQVlKS0pVTE1VSU9CVU1KWVdZFhoPEhUdFFlBWU9LSFVKS0lITk NDVUpLS1VLWQY+ X-DKIM-Signature: a=rsa-sha256; b=QZ2GtWWMsul2QeIHwuGiuhmBq96KMkJaHAQCdPjoZUb1+QTZeH0YJEE7uRoggZBwhE/5QLhy4UggayqXsp8SOL5KqHD94NUL0Y3dIq0SYpaNb0VjeZfG8bpL38FdugH073boSAp2I4FLaxbUmhYJFnpEWOLdN87fz+cCdAXdYlA=; c=relaxed/relaxed; s=default; d=mail.sdu.edu.cn; v=1; bh=CuMb9fAQY4TEnBxORNG0C/pPcXsP2EatYPLA/TeR2Pw=; h=date:mime-version:subject:message-id:from;