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=1796366198; b=l2DF5dN7MsDh7ky1azAwVwnUBGgJKxGQp8EXjnFmtGT0Rzbk50OOzqdWlfIS2yeYVKy3 I6PFPMedqWsrecl8EpwjoqivQa206uClp0Sw7fMHBuOJPY4WStDSQBZFPu4oBpInWqrRr pU/HgNpzhacqEGkTRfy4dyGG+1TbepODA1mwpoOLUHz5wakXD5wcfkh7CGjfW6DNFpwGI ww3cel6EsfRf3uz3mnA+SWD69TuTK+eQEzUPH900PpbxsnGzc+P3sjAEWIExhkD92koY+ dqF9fJSeg1zX7zK5/KPx/4+spOto6guXFO9JYm7oxnzxMhz5Wl4jKc+sA+d2J/zgFwA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796366198; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=+dmXRLdsM2iY9T7OiHZMUIEfsdLIRsZmx/kVmBRDRDs=; b=hM/sKpsCR5rpY2fziRc8P7omlSQBpihY4MovUbxxyKKtcCoy/yV4cIYz4/bwIU41TgHj y6IVEUwM9AqnHXQU2QDk4od8nnzOezW2busGQICYUC2a3TCNWc27+DEnMFP3ebQAyx8N3 sp1q/UaSSL1nKsWuXQWhEIFxAq9R+Aa/NXsf+PHwenGWN+7XJH4UT76p/lhUM4wMpLCAc bMbrgBvTeMSS0WcpNAirSZe1/Dd7W2RvCo0QUR6OXiENVUojWqdV0KnrIY1F9hKY+NQG8 44Ab2TOK9VG/TjDXMcKzqGK2E+BmcnuWVAf89Y2dTN4jiLdJpwPzJFw/Ak//Hu7L8GA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=a6YeItz0; 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 D2184606A322 for ; Fri, 4 Dec 2026 06:36:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=a6YeItz0 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92DC91F000CE; Fri, 4 Dec 2026 06:36:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796366198; bh=+dmXRLdsM2iY9T7OiHZMUIEfsdLIRsZmx/kVmBRDRDs=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=a6YeItz0owmfx/PTUolhR6LC+u3UKDEzqcSZygZoiZN/AtDn6KJ+tatyvC5pq8DDI dWd34R1CxDmZqCjgUDlQKpbG92WfO0chyDB8jjh0j7i8E5n5PS/NDW8Sya19kzckVb oko0Z000eoBItAXS9RLWyLKZ3HVP9s0hdzjCzKpB+Ke7/jR84iLE1+8mG5j3wnC+Du if1xywO6n+VfwGWdb9/L17ZeuVTldxbjV7Y4unslPxwfwjBfWuLOKrgTFB1k99l82E Tus2Kfn9bSu7r6cuJtDa9ZOMKMs+FDd5oPI7ZaTFRl8/DmN4VJ2hZ/3Ia0ejD4p5W2 v1XrZV/Z92e8A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] usb: gadget: f_tcm: Free data buffer on read queue failure Reply-To: sashiko-reviews@lists.linux.dev To: "Wanhui Fu" Cc: linux-usb@vger.kernel.org In-Reply-To: <20261204061952.1513011-1-fuwh1120@163.com> References: <20261204061952.1513011-1-fuwh1120@163.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 06:36:38 +0000 X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > uasp_prepare_r_request() may allocate a data buffer. If > usb_ep_queue() fails, uasp_status_data_cmpl() returns > without doing cleanup, resulting in a memory leak. >=20 > Jump to the existing cleanup path to fix this. >=20 > Found by a self-developed static analysis tool and > compile-test passed. >=20 > Fixes: c52661d60f63 ("usb-gadget: Initial merge of target module for UASP= + BOT") > Signed-off-by: Wanhui Fu Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204061952.1513= 011-1-fuwh1120@163.com?part=3D1