Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2190698/?format=api
{ "id": 2190698, "url": "http://patchwork.ozlabs.org/api/patches/2190698/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260129223116.653124-2-marek.vasut+renesas@mailbox.org/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260129223116.653124-2-marek.vasut+renesas@mailbox.org>", "list_archive_url": null, "date": "2026-01-29T22:30:19", "name": "[2/2] net: tftp: Fix TFTP Transfer Size data type", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "0c152564e7739c4ba21156a88ae187c41b4eddd3", "submitter": { "id": 85650, "url": "http://patchwork.ozlabs.org/api/people/85650/?format=api", "name": "Marek Vasut", "email": "marek.vasut+renesas@mailbox.org" }, "delegate": { "id": 157425, "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api", "username": "jforissier", "first_name": "Jerome", "last_name": "Forissier", "email": "jerome.forissier@linaro.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260129223116.653124-2-marek.vasut+renesas@mailbox.org/mbox/", "series": [ { "id": 490309, "url": "http://patchwork.ozlabs.org/api/series/490309/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=490309", "date": "2026-01-29T22:30:18", "name": "[1/2] net: Stop conflating return value with file size in net_loop()", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/490309/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2190698/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2190698/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256\n header.s=mail20150812 header.b=rmiP3CMz;\n\tdkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org\n header.a=rsa-sha256 header.s=mail20150812 header.b=kmkaR7Ud;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=mailbox.org", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n secure) header.d=mailbox.org header.i=@mailbox.org header.b=\"rmiP3CMz\";\n\tdkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org\n header.b=\"kmkaR7Ud\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=mailbox.org", "phobos.denx.de;\n spf=pass smtp.mailfrom=marek.vasut+renesas@mailbox.org" ], "Received": [ "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f2DQR5Bq3z1xvM\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 30 Jan 2026 09:31:43 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id BB75284120;\n\tThu, 29 Jan 2026 23:31:34 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 1ED4E84127; Thu, 29 Jan 2026 23:31:34 +0100 (CET)", "from mout-p-201.mailbox.org (mout-p-201.mailbox.org\n [IPv6:2001:67c:2050:0:465::201])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 1FA4484114\n for <u-boot@lists.denx.de>; Thu, 29 Jan 2026 23:31:32 +0100 (CET)", "from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4f2DQC6GP7z9tyM;\n Thu, 29 Jan 2026 23:31:31 +0100 (CET)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;\n s=mail20150812; t=1769725891;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=Jjln+adIEslQt1cZjKUvkNUwKRnycTP43cb+rHUyED8=;\n b=rmiP3CMz9Fq4NCuHUpBR01XQChPfV7fcPlubQCbXDetPzYPLxC8W0bcbMhPPe5W4hkRbit\n 0cXRPLRZIdxTbBNWzSnonszxd0wCsLvMWlAyeF6bAQXHpfX5qyfbVeifUYhd0x1pWrMusv\n /cueX4qiJNjQPyyhwB4uuPokbgdOir8jDe0KOLLAcNlAoNSb4i9vzAu32fVWv2fuTBfWfL\n zI7tPaad5gTFmOZwktx61ewKwITti/Si7IotFY/+b0smmNzunEjmc7rkgiH3Tty7vBll4n\n eFufSGxf3fN/3YIbovOyP8wr5/JkvBQ1lLPAHTgaAwMMGWFqtwsSPxXBpROnDw==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;\n s=mail20150812; t=1769725889;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=Jjln+adIEslQt1cZjKUvkNUwKRnycTP43cb+rHUyED8=;\n b=kmkaR7UdTiDr5E1pZSuP2ZrBX4Odf+pAVYT7njKBFl6taGLGf5aOCkRHK9Det4yO7QM2s5\n 5odrD7wUtwuVqaQjm9djcU9O0uQc29BVInmRpy7tJBVHlS4d7qMsD2jdTekxIOB/9BQL2y\n DlP0w3Mz0Sj/d8isS0mcF1t+Gtq5+s6/NZcNaHTYn7kZt0kReqsoPPRZZLjO/8bufHsK4q\n 3Co93u5aaF2jW5Uck4s0uiCarennx19tLNArVj5E6yAd7zExsqesk5zJ//jr96bt6D2K3O\n Ap0vgT7ig32tApMcAhjmWlsJf/FihEYjcsyH1tu+KalQLVFkufiKJ7gFp7rCmw==" ], "From": "Marek Vasut <marek.vasut+renesas@mailbox.org>", "To": "u-boot@lists.denx.de", "Cc": "Yuya Hamamachi <yuya.hamamachi.sx@renesas.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n =?utf-8?q?Alvin_=C5=A0ipraga?= <alvin@pqrs.dk>,\n Alexander Sverdlin <alexander.sverdlin@siemens.com>,\n Andre Przywara <andre.przywara@arm.com>,\n Andrew Goodbody <andrew.goodbody@linaro.org>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Jerome Forissier <jerome@forissier.org>,\n Joe Hershberger <joe.hershberger@ni.com>,\n Leonard Anderweit <l.anderweit@phytec.de>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Quentin Schulz <quentin.schulz@cherry.de>,\n Ramon Fried <rfried.dev@gmail.com>, Simon Glass <sjg@chromium.org>,\n Tom Rini <trini@konsulko.com>", "Subject": "[PATCH 2/2] net: tftp: Fix TFTP Transfer Size data type", "Date": "Thu, 29 Jan 2026 23:30:19 +0100", "Message-ID": "<20260129223116.653124-2-marek.vasut+renesas@mailbox.org>", "In-Reply-To": "<20260129223116.653124-1-marek.vasut+renesas@mailbox.org>", "References": "<20260129223116.653124-1-marek.vasut+renesas@mailbox.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-MBO-RS-ID": "e0d838909dc7d811653", "X-MBO-RS-META": "thjpjxisaxm4k3f55yp5ypc631iw1ohp", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "From: Yuya Hamamachi <yuya.hamamachi.sx@renesas.com>\n\nThe TFTP transfer size is unsigned integer, update the data type\nand print formating string accordingly to prevent an overflow in\ncase the file size is longer than 2 GiB.\n\nTFTP transfer of a 3 GiB file, before (wrong) and after (right):\nLoading: ################################################# 16 EiB\nLoading: ################################################## 3 GiB\n\nSigned-off-by: Yuya Hamamachi <yuya.hamamachi.sx@renesas.com>\nSigned-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>\n---\nCc: \"Alvin Šipraga\" <alvin@pqrs.dk>\nCc: Alexander Sverdlin <alexander.sverdlin@siemens.com>\nCc: Andre Przywara <andre.przywara@arm.com>\nCc: Andrew Goodbody <andrew.goodbody@linaro.org>\nCc: Ilias Apalodimas <ilias.apalodimas@linaro.org>\nCc: Jerome Forissier <jerome@forissier.org>\nCc: Joe Hershberger <joe.hershberger@ni.com>\nCc: Leonard Anderweit <l.anderweit@phytec.de>\nCc: Marek Vasut <marek.vasut+renesas@mailbox.org>\nCc: Mattijs Korpershoek <mkorpershoek@kernel.org>\nCc: Quentin Schulz <quentin.schulz@cherry.de>\nCc: Ramon Fried <rfried.dev@gmail.com>\nCc: Simon Glass <sjg@chromium.org>\nCc: Tom Rini <trini@konsulko.com>\nCc: Yuya Hamamachi <yuya.hamamachi.sx@renesas.com>\nCc: u-boot@lists.denx.de\n---\n net/tftp.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/net/tftp.c b/net/tftp.c\nindex 78ec44159c1..5f2e0a2bc06 100644\n--- a/net/tftp.c\n+++ b/net/tftp.c\n@@ -94,7 +94,7 @@ static int\ttftp_state;\n static ulong\ttftp_load_addr;\n #ifdef CONFIG_TFTP_TSIZE\n /* The file size reported by the server */\n-static int\ttftp_tsize;\n+static unsigned int tftp_tsize;\n /* The number of hashes we printed */\n static short\ttftp_tsize_num_hash;\n #endif\n@@ -573,7 +573,7 @@ static void tftp_handler(uchar *pkt, unsigned dest, struct in_addr sip,\n \t\t\tif (strcasecmp((char *)pkt + i, \"tsize\") == 0) {\n \t\t\t\ttftp_tsize = dectoul((char *)pkt + i + 6,\n \t\t\t\t\t\t NULL);\n-\t\t\t\tdebug(\"size = %s, %d\\n\",\n+\t\t\t\tdebug(\"size = %s, %u\\n\",\n \t\t\t\t (char *)pkt + i + 6, tftp_tsize);\n \t\t\t}\n #endif\n", "prefixes": [ "2/2" ] }