From nobody Sat Apr 4 00:21:34 2026 Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.173]) (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 C944A29B20A for ; Sat, 21 Mar 2026 13:20:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774099254; cv=none; b=Lm9Sk3HQuiawaTNdGZxhZ3Ee/5/uJW2m4d17Qfsmm1BQ8YfDIh1LGDqvfDoqIa+T9YWXSORmI3gNrdGznVmNitMxUWphu5LaoNhdhkKBP/ly9mlXG455GxkbzFetERXZxlckzq0jp7pQOxwBgFqMxl4cFb121AiZgNystTxErgs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774099254; c=relaxed/simple; bh=VOFoDSl/nZOY7CuopThGe8mSVsZDnWG8bM3/MTHqOVA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QJm8tRVnSel7hoTMP69QbmDX+1Dk7Q+5+ng1/+5X4VhVihBYFkPbfVNu7TcHbOdB9D0Qtj5CJhUbmtYcFxponYNM7Mm7tv0/o9Wg8DDY8d3ij9PhMU3/+CI1m+I9SuXIubSLzxH5KsGiS5lUs/qxkEQKxXMnVUXlBYVF3VM1EV4= 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=V0JbboNk; arc=none smtp.client-ip=95.215.58.173 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="V0JbboNk" 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=1774099250; 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=V0JbboNkY7UWMOidsyz/glzKI4HNAJPhXN/0S/fuHXQNoPxzA2zUqHX7v1EgngCFMz4TwP d53tDslKdesE5Sgr2OYU3EsD2KvAkR2Pd1LN5wsUR0RFVqYnRfRhTRBRBodcnsoQJLDt/8 ZmIEUaUTPFfr3oJpI7zyJgGpbEqvvRw= From: Thorsten Blum To: Parthiban Veerasooran , Christian Gromm Cc: Thorsten Blum , linux-kernel@vger.kernel.org Subject: [PATCH] most: core: Use u32 for coherent_buf_size in most_free_mbo_coherent Date: Sat, 21 Mar 2026 14:20:34 +0100 Message-ID: <20260321132034.40758-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=owGbwMvMwCUWt7pQ4caZUj3G02pJDJn7ZitFBz/OL1TLenyxu2r5+pjorKI+u1nTTqw/URCcp fJ1vvOLjlIWBjEuBlkxRZYHs37M8C2tqdxkErETZg4rE8gQBi5OAZjIFhOG/44xdxfvZpkTGnlM NnE+Y/7aL/3Xgt2WZ2/W7PqafLx8NTMjww12zUkpTxhiWnKD1ARumy2XOGBV8TL+uYbP3qWTxK/ cYgIA 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);