From nobody Mon Jun 8 23:56:01 2026 Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C4683770B for ; Mon, 25 May 2026 09:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779701946; cv=none; b=ufTRzpVKqcI1LhlVJN3ifATpHGIINf7XLgrzfMpL/9QVHAEgO0yJmf0gD6XsCswc0foI6lnbzOvk+Rhm94gcPLIe23zk2eMMordQxOvLPeIKVihhIbJ6Q1RpC5nMkYSFFHHJXk26T4eejq5SlGUhh2Ly46t206cWubwjPMRLVEs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779701946; c=relaxed/simple; bh=VOFoDSl/nZOY7CuopThGe8mSVsZDnWG8bM3/MTHqOVA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cO5YNurlyy6a56eIhcFcd3JuQedcH/f7BGAsSetFeH7umCSVx3jx82KlIicb+2fiscGhUmsvITWFgIbwt1PVfqaD/rh7VL6itcU5agPGnay0lMvmLVI53CkunatUqQbWYoCeqsJM83dt18Sxrd5ExHgsMVrn+mdWJHUVPFrBuMs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=u9BN/ncO; arc=none smtp.client-ip=91.218.175.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="u9BN/ncO" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1779701943; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=e3nEr+L6TWZREHBlCcLjqGPuzVu4ihWYJpszZaOPyRY=; b=u9BN/ncOhfTCDqUaxrCWRhQoG/EGIIKQQEQ0kgSy0rnlHa2vRD2lKWCW7ZxQdxj2jpTF0+ W5z+FTZTWS/i/JJY4Pz/+dtP6jl6moHhInqJ32jCtwbMLiDsOcZeDn/zt34ONBk1u6h0oH wwHhbKMZDEXPG+e3UwrYlKIAJv6P6/Q= From: Thorsten Blum To: Parthiban Veerasooran , Christian Gromm Cc: Thorsten Blum , linux-kernel@vger.kernel.org Subject: [PATCH RESEND] most: core: Use u32 for coherent_buf_size in most_free_mbo_coherent Date: Mon, 25 May 2026 11:38:56 +0200 Message-ID: <20260525093855.819955-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=834; i=thorsten.blum@linux.dev; h=from:subject; bh=VOFoDSl/nZOY7CuopThGe8mSVsZDnWG8bM3/MTHqOVA=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFkiEuujgx/nF6plPb7YXbV8fUx0VlGf3axpJ9afKAjOU vk63/lFRykLgxgXg6yYIsuDWT9m+JbWVG4yidgJM4eVCWQIAxenAEzkxRKGv8JnTvTYv/0Wa+P/ SCgjatE0pWbPq3fljfZ/qj8rHrW034KRYS+r1WHe5vtHbZwjRL9dTM067/0mb+4qXmaH1MrmL1p i7AA= X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Use u32 for 'coherent_buf_size' in most_free_mbo_coherent() to match the type used in arm_mbo_chain() and to avoid narrowing the sum to u16 before passing it to dma_free(). Signed-off-by: Thorsten Blum --- drivers/most/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/most/core.c b/drivers/most/core.c index c2616da8bceb..92764e5c27c9 100644 --- a/drivers/most/core.c +++ b/drivers/most/core.c @@ -100,7 +100,7 @@ static const struct { static void most_free_mbo_coherent(struct mbo *mbo) { struct most_channel *c =3D mbo->context; - u16 const coherent_buf_size =3D c->cfg.buffer_size + c->cfg.extra_len; + u32 const coherent_buf_size =3D c->cfg.buffer_size + c->cfg.extra_len; =20 if (c->iface->dma_free) c->iface->dma_free(mbo, coherent_buf_size);