From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04C7F36495D for ; Wed, 27 May 2026 19:13:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779909193; cv=none; b=Ami0C3LVJo+Ma2xBotsjpPannUxVCwzEQIK48fCZopN/7m5vTh50TUlts+16Q6kOmQb5gxgG+3kZsB55KG0Sg8FD2iRc6AjNtA5kTm4UaUlJL2pzFloru1JrFlKCtD4AFw3ifCWaNqG2bbPEBzMMA7G5228pu4OoMnn6yFXcPzI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779909193; c=relaxed/simple; bh=z3kvo3WLagg06+RgWih/Ik0h/y0BaH1lzt2bmYD0gMo=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=uUfaJ2sSL9VHCItVmLMZ12lOxII8oS7Z3qbC94j7jq47RFz9cXUt5Z4kd6T3M6zNDWYEZuAKn/E3qBtzQpLwRbToyrOJkMXNvy2LkGYdEi3w1LVnF/75WRVB86qqwsp/ad4rVHMBtvPUl6ChKGsMbd0cYmWpSwmhSxoHQ7aRSeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=qjBLBbsc; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qjBLBbsc" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-48a3e9862f0so63629825e9.1 for ; Wed, 27 May 2026 12:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779909190; x=1780513990; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=jpxBKDh5pDd0JFZBOF4cl+ZIfpcNg83H3YdC1zjzFa8=; b=qjBLBbscDZQs17HSE1KHijkxgT7pAMMQmNnR/xnLAIf0+7+8qG2m6AOIpppIf6uGss 0ZSyceh4WJIHJIzcjZWcqBMQuyHowaATDgpwaOLjWKGARqRmtysYAQdWldMJC64wU8Fu EowncbRr1x60Mf42xDY5RU0M9bpvIzhLRbqVmepiNdmcjPldXQBKpg9BCk0N0Ck2s+Y/ 7L1jMbP7+gaMQMa6ujaEn0fegwK9FlZRRH6tl4lgdaDhxNIb/2Qg7L8zGncBIKJEaQnZ D1IiVPwH5txxefD6AWUQwnqF0h7qXipk41m5cYECXcICunfcsa9a1DHcuDie83zQMqDW b1/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779909190; x=1780513990; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jpxBKDh5pDd0JFZBOF4cl+ZIfpcNg83H3YdC1zjzFa8=; b=jGjx6ahwPUDHdwJJJ1pvOkp7RIqOaH0VMbkJDKR5pVjYtMQDlPcZLjPUcYOAAJ15Vs SuqsUFeR+87hAMlhW/qaPaUlg0xyy8NlMO4Sd6Auu2oy1jwhbrAD5ubiOIzlr1krhqv7 SnSUEoYu0eQ9VcAjrC/t5cglE8qFZ+2g+x99O8KGJlxTrfzF3cu68IRhm6Bu0K9E5v8b eKnUuIZfREnxvCtmxLR7jKVHR8+0Mw9LxZ/OmfApxSXJVDgeS+J9Q/aEDen3eTZyZtMR 3DsY0xOBJTV6l1UyGhmsLNwFfy2yqtr53RT6JkeBI67sGujGAOMBFa6sxVbiEXCVieTf x9Zw== X-Forwarded-Encrypted: i=1; AFNElJ9UYxalmqDfgS3v0fLRZEPYHvKjBChsh3s7BFeSi2sEYA+e+zu5EukHJ1GoxB2gvKH2JR7OCmhkx2L9KxE=@vger.kernel.org X-Gm-Message-State: AOJu0YxGb/4uF3w8or6PrnIDvNVdXQt8RAeJHvc218Ya7p+6rAKuvGyw fLPBbyD9O96SSheA5j/8fXQHFtnbTSTX1rpmvx4U6oatmPjaBj1OY2Gh X-Gm-Gg: Acq92OEGYwC/Oc5sWioGl2P3Ah2j1fHp07dcVhPQtAMdjtwjEmcbNqPpDl9EWEuJZyN zR15qY+uafzXFemuNfXUJVHTvgLW2l0XlXWnMJgYE98o9v7Oj3wqd2Ip0+nk0IgWSJ6nsyX6mUY IlrAi5WY70P4SAIx4re94a0Hyl91x4xI9E2DJrZF1NT3GA6vwwOL90mDrjMgMP9TIvfkf1JIYzZ kkk0tDbTni2p31XCx5EZG6xXm2bwgQrCSmerRsTlIMH7XP8PwDgSD0iyt95LjnQkV8fRfKmEjeK Pb+Mf/JK/BV+vksmTZj8UmNmoo3K+ak0Es1CHDXL8BcUHaIG7Cx+rTSEod+m7gyrjYI9l/tLSA+ c+SF68fsFZu8Gn07+Ph6aXfGZ1D6yl0P6qeBQVPkMlIykpU+JvQ89VdIxYJ5TCKeNq0xP8pAv/2 iCIin16SrZo7W6NVkm+JXjLG4xN7eUPCEv7Q== X-Received: by 2002:a05:600c:6b12:b0:488:7d5b:125d with SMTP id 5b1f17b1804b1-49035f2e4f2mr309955995e9.7.1779909190118; Wed, 27 May 2026 12:13:10 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45edb5b2bbfsm8509775f8f.32.2026.05.27.12.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2026 12:13:09 -0700 (PDT) Date: Wed, 27 May 2026 22:13:06 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Dave Penkler Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: drivers/gpib/ines/ines_gpib.c:917 ines_isa_attach() warn: 'config->ibbase' from __request_region() not released on lines: 913. Message-ID: <202605271229.d8wGTffx-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Dave, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: eb3f4b7426cfd2b79d65b7d37155480b32259a11 commit: e6ab504633e4c06e35377ecf3c8cbc304de79858 staging: gpib: Destage gpib config: alpha-randconfig-r071-20260527 (https://download.01.org/0day-ci/archive/20260527/202605271229.d8wGTffx-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 8.5.0 smatch: v0.5.0-9185-gbcc58b9c If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Fixes: e6ab504633e4 ("staging: gpib: Destage gpib") | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202605271229.d8wGTffx-lkp@intel.com/ New smatch warnings: drivers/gpib/ines/ines_gpib.c:917 ines_isa_attach() warn: 'config->ibbase' from __request_region() not released on lines: 913. vim +917 drivers/gpib/ines/ines_gpib.c cfa6673eae0281 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2025-05-02 889 static int ines_isa_attach(struct gpib_board *board, const struct gpib_board_config *config) bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 890 { bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 891 struct ines_priv *ines_priv; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 892 struct nec7210_priv *nec_priv; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 893 int isr_flags = 0; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 894 int retval; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 895 bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 896 retval = ines_generic_attach(board); bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 897 if (retval) bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 898 return retval; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 899 bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 900 ines_priv = board->private_data; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 901 nec_priv = &ines_priv->nec7210_priv; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 902 0de51244e7b7e3 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2025-02-20 903 if (!request_region(config->ibbase, ines_isa_iosize, DRV_NAME)) { 0de51244e7b7e3 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2025-02-20 904 dev_err(board->gpib_dev, "ioports at 0x%x already in use\n", 0de51244e7b7e3 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2025-02-20 905 config->ibbase); 0de51244e7b7e3 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2025-02-20 906 return -EBUSY; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 907 } bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 908 nec_priv->iobase = config->ibbase; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 909 nec_priv->offset = 1; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 910 nec7210_board_reset(nec_priv, board); 0de51244e7b7e3 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2025-02-20 911 if (request_irq(config->ibirq, ines_pci_interrupt, isr_flags, DRV_NAME, board)) { 0de51244e7b7e3 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2025-02-20 912 dev_err(board->gpib_dev, "failed to allocate IRQ %d\n", config->ibirq); Need to called request_region() before returning and maybe something to clean up the ines_generic_attach()? bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 913 return -1; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 914 } bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 915 ines_priv->irq = config->ibirq; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 916 ines_online(ines_priv, board, 1); bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 @917 return 0; bb1bd92fa0f2c9 drivers/staging/gpib/ines/ines_gpib.c Dave Penkler 2024-09-18 918 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki