Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2223097/?format=api
{ "id": 2223097, "url": "http://patchwork.ozlabs.org/api/patches/2223097/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260414053526.2955266-1-gsanthak@qti.qualcomm.com/", "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": "<20260414053526.2955266-1-gsanthak@qti.qualcomm.com>", "list_archive_url": null, "date": "2026-04-14T05:35:26", "name": "[v1] usb: dwc3: core: fix memory leaks in event buffer cleanup", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "e56b61b3ce3525b01e74e5f0681200d3632beab3", "submitter": { "id": 93144, "url": "http://patchwork.ozlabs.org/api/people/93144/?format=api", "name": "Gurumoorthy Santhakumar", "email": "gurumoorthy.santhakumar@oss.qualcomm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260414053526.2955266-1-gsanthak@qti.qualcomm.com/mbox/", "series": [ { "id": 499834, "url": "http://patchwork.ozlabs.org/api/series/499834/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=499834", "date": "2026-04-14T05:35:26", "name": "[v1] usb: dwc3: core: fix memory leaks in event buffer cleanup", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499834/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2223097/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223097/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 unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=irFFr+el;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=joFOB2UL;\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=none (p=none dis=none) header.from=oss.qualcomm.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com\n header.b=\"irFFr+el\";\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.b=\"joFOB2UL\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=none (p=none dis=none)\n header.from=oss.qualcomm.com", "phobos.denx.de; spf=pass\n smtp.mailfrom=gurumoorthy.santhakumar@oss.qualcomm.com" ], "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 4fw44c0T3dz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 22:55:12 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id C6EE984222;\n\tTue, 14 Apr 2026 14:54:52 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 5A44983EC6; Tue, 14 Apr 2026 07:35:39 +0200 (CEST)", "from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com\n [205.220.180.131])\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 1BC45838BB\n for <u-boot@lists.denx.de>; Tue, 14 Apr 2026 07:35:36 +0200 (CEST)", "from pps.filterd (m0279873.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63DLB2WW2510011\n for <u-boot@lists.denx.de>; Tue, 14 Apr 2026 05:35:35 GMT", "from mail-pj1-f69.google.com (mail-pj1-f69.google.com\n [209.85.216.69])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dh867s53f-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <u-boot@lists.denx.de>; Tue, 14 Apr 2026 05:35:34 +0000 (GMT)", "by mail-pj1-f69.google.com with SMTP id\n 98e67ed59e1d1-354490889b6so7518761a91.3\n for <u-boot@lists.denx.de>; Mon, 13 Apr 2026 22:35:34 -0700 (PDT)", "from hu-gsanthak-blr.qualcomm.com\n (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-35fc6e60635sm1104771a91.5.2026.04.13.22.35.30\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 13 Apr 2026 22:35:33 -0700 (PDT)" ], "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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n content-transfer-encoding:date:from:message-id:mime-version\n :subject:to; s=qcppdkim1; bh=6q17JdLWlyFne5tiQpHZ59HOiZRGvIYyXui\n RY5snyr0=; b=irFFr+elL+ZLlZupayGs1zuCHNrbPnHxWEFnXVk5zWpjJKYw/C8\n JL1+JSssTW7nR7Dxr9xy/L1RJ2H/t/3LdcwWDLqjwHF17PVUWMZSBNw2vwhrqNki\n N+59PWLu6Q/0sielp3iTdV8GScTMRmj7+ybMdmhXFWoStOb9IS884GeVSWQCEm9L\n ehVcF8FnUNOI/SazfBomDt0qXs1ra0GO72tqbe1aZ9xaeIf55NQwonQ8FLpeCG+d\n mqJTFrRkVsIf6gQZNNs5nWwDkjsOpTFyNGP81JbuKhTcXnhY83L5vrSG8V72CBqr\n 8ZJyJsitnbC8zCIabeBomYaX7wISfZlcqQg==", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1776144934; x=1776749734; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=6q17JdLWlyFne5tiQpHZ59HOiZRGvIYyXuiRY5snyr0=;\n b=joFOB2ULvtjJjuFejnNoYAwwYsvMVganvXzKG52rQWVMR1I8x77FKkYcC0xTbEQynp\n nfBIyLGnm00cpPclBRl8F7ytO24n787FJ0+zEbVSvOvzk8m7q4a8WuCUMo5aPGWwvQ7R\n zpjmshpJyAhUe3YxPdNCDjlOYx2vy+090OvJb9lwUTCLq/To5bOktJtERMx99PhfDeli\n P9+Vc9aqwri4P/eWIw4HLd+7GzIsJaaj3QQWvLJmnNhsSYyq1NiPb+ViS88ZulGh5oDE\n a77aAm9Quk02i0VjNxUDDKRsBoeHucyiRW4GInsVdX2e5ls+lbjauoj8288Uh7Wsm5E9\n 937Q==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776144934; x=1776749734;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=6q17JdLWlyFne5tiQpHZ59HOiZRGvIYyXuiRY5snyr0=;\n b=U93xo9WNtrpOFck0fiuMHgGnsGSH6rUbHdXl2F0BkOpCvv5vgi4JxzRLgeZ2VAySNb\n 0IT8iiNIwOGixDZ1s8LXJZCov4bwY55Lz23Rpe9X+/x3cYABD3/xDXx7HA/XOGVhBp/a\n FmQfyAShKmYbDcfJt3Y6o4cszMXVHMtsQCpV+lFmp0HiWt1ETGYQrqyZHDmwfLPlTcoq\n VoEd+4n85dsS1kNxCC1OaEmWFS1yxTVzIWB5bZmJZjYRVLDwn6ioxXsGaW8yR4VgqrPn\n oAjrSeKXp7JUu4cu1dbbt5WuJw9NOkCHwz9dNaGPQ46MyUDHj7IuRqV8ITyTtOc+mwLv\n ClMQ==", "X-Forwarded-Encrypted": "i=1;\n AFNElJ/Okb7gvuEatLZvOjyLsqPLvqMIObG/udGgcmUhcPO1ZEZsS0ggaKmoueNnQfRUEV7BC0V2emg=@lists.denx.de", "X-Gm-Message-State": "AOJu0Yw4LLkpCwf4AJptMz1+EO0daGiNz2VFE9FdOjn3Xqw+ST/HnVeo\n J87K7R9I/oSVDKauXp/qMgd2YtyVSmi80W1UBYg+OWKY+Gpt6oTTy5NuUdsPQSYb58Vo205BaZB\n IA39KHtNG9RO9f620Ab25n5U7j9eV/85ddnUtrahnxMi9a+CGpCUsBWQ8", "X-Gm-Gg": "AeBDietCIwuwr7jRH0aBlbiAK9Y/CRvWtB6YiTHX8desGeCD2b3ZEo0LCZLzvqRUgRc\n 6fpbR2Osxyza2gDU02QnbglO8r/3oexJzyj3CyRj1ArW7y+OMCh25Y45GUyUvlneq7xfoFts8Ex\n 2+xzlsrqlPAeZ/XWSjy/Qck3VIPL5oe4gKAexmdSnBOpRQEliawJhxB0kr+2nEYLYmm6zPgb1Zs\n m+ByAjl2EfZpnojd380O54YvZc3dDMaXeN2nb5Cl6QjllU76zLi/hF1Q4/xgXYth5+TAcUWcofC\n xvTL1h3k1TK1caTTArFssEasQtmM4XJ2DDHYbHdvT70W1/pDmEhHKxhRa/rJyv47M0+wJltEX6S\n RehZA7QoZZ+L7HdI5y5gvC0stEJO8+AeaH1JuqxoaynAEQ0I7fI4npvDWxlmr2SLB7qZ74pOgeO\n x1NoE+NDTO96iID+gEW5FqZ7IgKvElYf4r+0kxNQ4vqhs8buU=", "X-Received": [ "by 2002:a17:90b:3d86:b0:35c:30a8:319 with SMTP id\n 98e67ed59e1d1-35e423f41c8mr16953187a91.0.1776144933895;\n Mon, 13 Apr 2026 22:35:33 -0700 (PDT)", "by 2002:a17:90b:3d86:b0:35c:30a8:319 with SMTP id\n 98e67ed59e1d1-35e423f41c8mr16953163a91.0.1776144933436;\n Mon, 13 Apr 2026 22:35:33 -0700 (PDT)" ], "From": "Gurumoorthy Santhakumar <gurumoorthy.santhakumar@oss.qualcomm.com>", "X-Google-Original-From": "Gurumoorthy Santhakumar <gsanthak@qti.qualcomm.com>", "To": "marex@denx.de, trini@konsulko.com, mkorpershoek@kernel.org,\n macromorgan@hotmail.com, casey.connolly@linaro.org,\n gurumoorthy.santhakumar@oss.qualcomm.com, felipe.balbi@linux.intel.com,\n quic_varada@quicinc.com, u-boot@lists.denx.de", "Subject": "[PATCH v1] usb: dwc3: core: fix memory leaks in event buffer cleanup", "Date": "Tue, 14 Apr 2026 11:05:26 +0530", "Message-Id": "<20260414053526.2955266-1-gsanthak@qti.qualcomm.com>", "X-Mailer": "git-send-email 2.34.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Proofpoint-ORIG-GUID": "dfYupbADDdUgXZWgwWnLrz3X8Q5nFk5G", "X-Proofpoint-GUID": "dfYupbADDdUgXZWgwWnLrz3X8Q5nFk5G", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDE0MDA1MSBTYWx0ZWRfX2MI0PGcZdg2x\n u3iztijxIBRjJJb1n9g7TN/N5/wy9JUdzbO3mfRFQy6QqKGdEhVzUT3InXBATCfiQ5ihQFGq5wo\n TOsTjpcVG1UsctHyz6Vm5MokzQC5/c0+whN2U2xWr4HoMmJlDz82IqI/0jW/iihW/P6ifcEbqaf\n 0PMOSrIjnFNG2op0TFIx97nmYu7K+TPpd8tyHtHvPdB6NUJ5t2Lg7PzYbY3IaEkdWmxkIPEzLhc\n z6864vdaKlJcKJFVA7rLpWUd5jqwXZh3DlGGCKIChRdExDhjtBCyKWsEVIouxZxeGTEU94kk9J8\n xq6ZtoIrrFGRznBOxxAQ0NU3DxFDWeXx7mLneHCH+3+LSTdwbRfVnRd3JgX/ywDgie4Zg5N3oTA\n VpRWYXc/BChT9mfEWFk+RFzgUtlSHWOka8s+E5UNeqFV3iuGBUk44zRdPn8m7Q0noMdzSJmL7/D\n O2movibyIcF1NbLTx+Q==", "X-Authority-Analysis": "v=2.4 cv=etzvCIpX c=1 sm=1 tr=0 ts=69ddd226 cx=c_pps\n a=vVfyC5vLCtgYJKYeQD43oA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17\n a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8\n a=8ukGJnHcqfySqs3Rp24A:9 a=rl5im9kqc5Lf4LNbBjHf:22", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-14_01,2026-04-13_04,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n malwarescore=0 phishscore=0 lowpriorityscore=0 adultscore=0 impostorscore=0\n priorityscore=1501 bulkscore=0 suspectscore=0 spamscore=0 clxscore=1011\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604140051", "X-Mailman-Approved-At": "Tue, 14 Apr 2026 14:54:51 +0200", "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: Gurumoorthy Santhakumar <gurumoorthy.santhakumar@oss.qualcomm.com>\n\nIn dwc3_free_one_event_buffer(), only the DMA buffer (evt->buf) was\nbeing freed via dma_free_coherent(), but the evt structure itself was\nnever explicitly freed, causing a memory leak.\n\nIn dwc3_free_event_buffers(), the ev_buffs pointer array allocated\nwith memalign() was never freed after iterating and releasing all\nindividual event buffers, causing another memory leak.\n\nFix both leaks by freeing the evt struct in\ndwc3_free_one_event_buffer() and freeing dwc->ev_buffs in\ndwc3_free_event_buffers() after all entries have been released.\n\nSigned-off-by: Gurumoorthy Santhakumar <gurumoorthy.santhakumar@oss.qualcomm.com>\n---\n drivers/usb/dwc3/core.c | 10 ++++++++++\n 1 file changed, 10 insertions(+)", "diff": "diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c\nindex 6f22b9232ba..e0c4cb64c48 100644\n--- a/drivers/usb/dwc3/core.c\n+++ b/drivers/usb/dwc3/core.c\n@@ -206,6 +206,11 @@ static void dwc3_free_one_event_buffer(struct dwc3 *dwc,\n \t\tstruct dwc3_event_buffer *evt)\n {\n \tdma_free_coherent(evt->buf);\n+\n+\tif (evt) {\n+\t\tfree(evt);\n+\t\tevt = NULL;\n+\t}\n }\n \n /**\n@@ -252,6 +257,11 @@ static void dwc3_free_event_buffers(struct dwc3 *dwc)\n \t\tif (evt)\n \t\t\tdwc3_free_one_event_buffer(dwc, evt);\n \t}\n+\n+\tif (dwc->ev_buffs) {\n+\t\tfree(dwc->ev_buffs);\n+\t\tdwc->ev_buffs = NULL;\n+\t}\n }\n \n /**\n", "prefixes": [ "v1" ] }