From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796379597; b=ExybbciBywIu1dIoqQsc1FCrocov8apDKMIJln54Zk3Kz1yDn1C+CaODHZv1oaH1PZAd r4Pn+C6qmugmz+R2HXX+NQnidDAchU1lMsoDv9al7EKq6gsmPu/z3sEL02S5nVEN7L5AE QqigKebXehIgtWTeE4pwBv1jlETln2atZVxcxETx7gRSRgZBQ/e3RW/984hT/hUfCEM4k S8ybrfl5YV9KdQ7SEaSroQMWRxk+yhH51MsoIOLQ6YELfzth5aaAN/jG7oBCKKlIkFTcG Q1NeVzHqbBk6v1kW+IYubjuCsLQU0WiOzhU12zdGniwQjUwUrrqE8YUP3k1tUu0gf2g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379597; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=oym+edHYirrXL5izDZQJBJ8RjZbg3ZvQKQT5w3i+a4Y=; b=Didsdf/4a9ZPmg/lkI/zpkXJmbqinAFuR1NZ2rOJNuL3b8kziercJ4v4qAD2d3amG1uj UvEEV6XVgPoN/Qu/GDnQV//d3GwWOoyZF+OjK0PjNibcMkXV8nmZWuu4wblEFXyVk2iN9 AX6jQJqss67DyDx8X83p5LmDh1JDg/mQPixPx7MaE2Go2ZpyawaLWIEFu7p/owctqZsGQ Kb6KKTzTs1LHHOZLM8fSC6FjMqHcbcEeuwNW2HfXhdS3YZknzb94s4EdjP20am6da19Ww 1sVoCh2oQzsNBb4kodIZOCuQ/NRGkicS0GoxgGc+HhaB0jTgJBiOwwmD+J046OH9GkA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=vpTMJ8u8; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2A3B606A69A; Fri, 4 Dec 2026 10:19:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=vpTMJ8u8 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C3AE1F00936; Fri, 4 Dec 2026 10:19:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379597; bh=oym+edHYirrXL5izDZQJBJ8RjZbg3ZvQKQT5w3i+a4Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=vpTMJ8u8q2Gcc2drJW3E2LmvP5rMh5pNxk+cVcm2ctl6pzaAausrI9HvtKfpb4e8a LcRc/h5jNczFcuQmlC1u4JiGt3DLajwM0u3uGxcfzLz4EGTGGqr/QksgrWEpTBEUEJ kg4pIR5KxILZQ1Kh+K+9/q+x+8bl0d6pD/ufIMNY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Laurence Oberman , Matthew Whitehead , "Martin K. Petersen (Oracle)" , Sasha Levin Subject: [PATCH 6.1 0031/1059] scsi: aha1542: Remove unneeded scsi_dma_unmap() call Date: Fri, 4 Dec 2026 18:52:42 +0900 Message-ID: <20261204100644.845877021@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matthew Whitehead [ Upstream commit 9ec6671b137de06f0345962fb8091466b7d56a96 ] aha1542 never DMA maps the command's scatterlist. Data is bounced through a per-command buffer allocated with dma_alloc_coherent() in aha1542_init_cmd_priv(), the adapter is programmed with acmd->data_buffer_handle, and the payload is copied to and from the request segments in aha1542_queuecommand() and aha1542_free_cmd(). The scsi_dma_unmap() call left in aha1542_free_cmd() therefore unmaps a scatterlist that was never mapped. With CONFIG_DMA_API_DEBUG enabled this results in: device driver tries to free DMA memory it has not allocated [device address=0x0000000000000000] [size=0 bytes] Remove the call. Verified by testing on real hardware. Fixes: 2f2fef022c3e ("aha1542: use a local bounce buffer") Suggested-by: Laurence Oberman Assisted-by: LLM Signed-off-by: Matthew Whitehead Reviewed-by: Laurence Oberman Link: https://patch.msgid.link/20260929144528.7061-1-tedheadster@gmail.com Signed-off-by: Martin K. Petersen (Oracle) Signed-off-by: Sasha Levin --- drivers/scsi/aha1542.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 552ca95157da8..eef61bc6cd609 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi/aha1542.c @@ -271,8 +271,6 @@ static void aha1542_free_cmd(struct scsi_cmnd *cmd) buf += bv.bv_len; } } - - scsi_dma_unmap(cmd); } static irqreturn_t aha1542_interrupt(int irq, void *dev_id) -- 2.53.0