Received: from mail-pz2-f42.google.com (mail-pz2-f42.google.com [74.125.228.42]) (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 715DC3659FB for ; Fri, 18 Sep 2026 05:26:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789709211; cv=none; b=e6ioa6M4TyxvN0Xzch8vYdLdROdWp04YAISc2l1I7ubAYCbbfWiEeuFaD7BO73BRKxsSRDff1T908N+KhQZb8kLYXiB2sSM+P9BbBVnS9tdsSrc9UwopFKzGQiTagSgp/FRFXwjJXqsGsOP1/T7xagq/CR1RGBrXxpBXTvxRj5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789709211; c=relaxed/simple; bh=APIgKbxej4lf31CklN2zWuAdmNbzeNaPEvKH6ti1slg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Pl0XcKYucLBGOnyFTrtaiHVsMTzAVUgRoVVoW5qo715Ld/UPSfayelssr9RThrV8jmx3ObePnP1YSMluVfq3gPnfx3bm7c6lP0otLbj/fWyyV9Mkp56eQR+oybyROBVF1t7LtZla+vAODNMhpNxspsQexvXA0Lf7pHDySM/mQXM= 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=MYOCBI2Q; arc=none smtp.client-ip=74.125.228.42 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="MYOCBI2Q" Received: by mail-pz2-f42.google.com with SMTP id 41be03b00d2f7-cc50b9e8a45so138785a12.2 for ; Thu, 17 Sep 2026 22:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789709210; x=1790314010; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=k9bbOXpbT7yDHFisaEGsDMS03xBQbY8+Apl0sWLLpxk=; b=MYOCBI2QRt0rwlyB/skNe6H3fRl6jFqn5o5jq6j4/4mLuBIZDVLps2CDwSD7XgVtyh fRPiFrhFSnSJorhegAiNG1aekhnhdPWeq/FpxM9umpgToQqvlSCqN3wo5KriY0OLKco+ 2bEbv+Gc1K/GRLEs7G8Ef/aofjrD6RKPeV8BfvkmODh6xKNMiIODpHk/Hnh2fzLA0NGd vh/xAP6ENddXC6xZsscaJiWLk8DJLW3Z8GY9ki6izX5rJAaj7J83vzD2SuQPkAzH6QlN 0jjmuwmdOsaJoeH4wDKLN6HnR7/0N8D86bOKQ8v0UHj8HTIshl/2F2Md2hlytsG6myct rYOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789709210; x=1790314010; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=k9bbOXpbT7yDHFisaEGsDMS03xBQbY8+Apl0sWLLpxk=; b=VY813WcVH7iYTh1Nx9/WFhnRd39VcItj35Mkgbr0XTviVsgNioypdocA/V7jvgHeln 0ZXArYzjnTHXfkp2N18mSpZhUPnvtcfX0bM/M0W0SrMPXIQimlO4K2LmMIS1zWAiMQzS zeda9qlvk/lG7Kmhp16DiCUysqvx3A0vDcxsemO6qTtP/7DXQGefwwcVZgURNF9f3L4A AFQtOqb5INaCKmA2dJDXfp/bYPVW+/clgEmc8xotsih/aLwChQtpWTJ0LDxLDcxZEvhU 4F5IsOUrKxTxWq4BYmn9UuA8kpu4mYsoN/21Os5yrcAk36GWlulel3Dh08qNkxo+6wR0 pZAg== X-Forwarded-Encrypted: i=1; AKwUvBxWbI5M2rAgQpuHqDj2D/wsFwFXBSFkH1vEDAKuguFZSqCzbjt9iw9WEUZfj0OtBaiEzjb1yMpbmUqF@vger.kernel.org X-Gm-Message-State: AFuF++nJ1WRQ1tGUqW1uPCk3vfGMwLthmsvDVtU1kCqFlWUhhWX+vuFc SFsjTK5mfTdpajjMBpZxA6UbyhVubO5DZNtguhXpQEJW1fli/w9JeMcy X-Gm-Gg: AYBFou1n72z5sWW5TWhNIEDnEBW0aA0eQVAstQ4d3PcW/3uIxMTI+nGQvjFLltoKckK d9wj2jc5G0BHVKGYVG/4VKUIMUQN7zj4dbAopItPPLOscj+lWYsO0YPJxFZlmFsGFyX/zveJ80h kIezsZQTEWq584B6RUEKqzqtn91/dOsVSBWNT4pGvjfJ1yUT2kn0oUNz/J4xGQanacLrXUUjgDX yhohRpxWTBXU4EJw4bqeeoER4NeJXApKCbaCbBCdjWKThi6l9vHAcFCHNWJBFKByotRQGU1WF6U ueGsWlcfZ/xQ+eZXYh01oyyhpZl5N4u4sRvWgOjfvT/cLzd3rt4rOWPuD7aswPxMfQLI2dj1XWs eW2oayIKmChOLQ8tbCJTX6B5tRlaXdlJqHVC6si7IKfr/FU1uO9WTzHyBgX0+YzvAD0eQTknSG/ bKLwIlRVhF83o64quR7AAL18jyT+xkaLV/Vo+f2JKIQr2ydXx/s3MBkQ== X-Received: by 2002:a17:90b:3909:b0:39e:359f:8539 with SMTP id 98e67ed59e1d1-39e54f35cf7mr4830569a91.15.1789709209775; Thu, 17 Sep 2026 22:26:49 -0700 (PDT) Received: from lgs.. ([2001:250:5800:1002::de93]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39e59e4a508sm1304091a91.0.2026.09.17.22.26.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2026 22:26:49 -0700 (PDT) From: Guangshuo Li To: "James E.J. Bottomley" , "Martin K. Petersen" , James Bottomley , Geert Uytterhoeven , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Guangshuo Li , stable@vger.kernel.org Subject: [PATCH] scsi: bvme6000: put SCSI host on remove Date: Fri, 18 Sep 2026 13:26:33 +0800 Message-ID: <20260918052633.3555452-1-lgs201920130244@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit bvme6000_probe() obtains a SCSI host through NCR_700_detect(). The probe failure path drops the host reference with scsi_host_put(), but the normal remove path does not perform the corresponding cleanup. As a result, the SCSI host reference remains allocated after the driver is removed. Call scsi_host_put() after the IRQ has been released to drop the host reference acquired during probe. This issue was found by manual code inspection. Fixes: 8276b58af4dd ("[SCSI] 53c700: m68k BVME6000 NCR53C710 SCSI") Cc: stable@vger.kernel.org Signed-off-by: Guangshuo Li --- drivers/scsi/bvme6000_scsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/bvme6000_scsi.c b/drivers/scsi/bvme6000_scsi.c index 23301edf100d..0beb4a2e5a23 100644 --- a/drivers/scsi/bvme6000_scsi.c +++ b/drivers/scsi/bvme6000_scsi.c @@ -99,6 +99,7 @@ bvme6000_device_remove(struct platform_device *dev) NCR_700_release(host); kfree(hostdata); free_irq(host->irq, host); + scsi_host_put(host); } static struct platform_driver bvme6000_scsi_driver = { -- 2.43.0