From nobody Fri Apr 17 07:44:20 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3B2911B78F3; Mon, 23 Feb 2026 07:25:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771831502; cv=none; b=FxryzeYKMcnTPCMIACVmM/hfa1W5HFmhDSiLXqmz/W9wL0mpmJzBNotudj/Mzpxhd1PE6CrJK5xshfaFz+TrrSWi5VTrI9525tzaHAeznIS04pjV9CLwDFY7wV7dmSWeSi3sPXLvBXbpI7vMs/Vc3/2gz6SpyTMdMe0th7OeZe8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771831502; c=relaxed/simple; bh=hWIqW7jHJ2VQUUBr1GTcCPfrrQUzpLq/f/OjUWUeCe4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JAQRozk8oUzYXeYFXnusBjfwoxgC9+g5egszlNvTDXeo4zKaXduu0oQiFEmiQLpCKykFBexlgJe5SezN7kkN3KJi/PFIgFxCvKfIBF0nj9jyzuN2zyCIKCOUNNMncsmRU/M+97nLSKZqx/+2Tb1ZEYfx4Pm5Kr+btM4lUMl3J70= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DHDIi2ch; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DHDIi2ch" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78568C19423; Mon, 23 Feb 2026 07:25:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771831501; bh=hWIqW7jHJ2VQUUBr1GTcCPfrrQUzpLq/f/OjUWUeCe4=; h=From:To:Cc:Subject:Date:From; b=DHDIi2chypdDmuZZ48ox8r4UVz9a5hU5xX7zc3VBylZiC4qsnAMnN0y6D+20OG6VH nZut0quRst/soznB2ukLEtXu5PbQRAue1995G/W93vjXaqtrwyuS7ab+O221/i99MH ommxVkFoj0F4aTDVovA08wiOQIcHTBAiSCfz+4bw= From: Greg Kroah-Hartman To: linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , stable Subject: [PATCH] usb: misc: uss720: properly clean up reference in uss720_probe() Date: Mon, 23 Feb 2026 08:24:55 +0100 Message-ID: <2026022355-swaddling-cancel-0f3c@gregkh> X-Mailer: git-send-email 2.53.0 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=884; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hWIqW7jHJ2VQUUBr1GTcCPfrrQUzpLq/f/OjUWUeCe4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlzGI4nbO1/VNVqXihwPGeS6BtbB+vmv9bvt1homeT2N NikXD3TEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5/5lhwfT79c1vL4ub79t4 6tUDo3M7P8R8nsIwP0wpVMJpxZ3TtppLZztNNj/QtCaeEQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" If get_1284_register() fails, the usb device reference count is incorrect and needs to be properly dropped before returning. Cc: stable Assisted-by: gkh_clanker_2000 Signed-off-by: Greg Kroah-Hartman --- drivers/usb/misc/uss720.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/misc/uss720.c b/drivers/usb/misc/uss720.c index ec8bd968c4de..2d681eee1f99 100644 --- a/drivers/usb/misc/uss720.c +++ b/drivers/usb/misc/uss720.c @@ -735,8 +735,10 @@ static int uss720_probe(struct usb_interface *intf, * here. */ ret =3D get_1284_register(pp, 0, ®, GFP_KERNEL); dev_dbg(&intf->dev, "reg: %7ph\n", priv->reg); - if (ret < 0) + if (ret < 0) { + usb_put_dev(usbdev); return ret; + } =20 ret =3D usb_find_last_int_in_endpoint(interface, &epd); if (!ret) { --=20 2.53.0