From nobody Thu Feb 19 09:13:26 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fGnjg1rvnz6ScWx for ; Thu, 19 Feb 2026 09:13:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fGnjf6ydZz42JR for ; Thu, 19 Feb 2026 09:13:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771492407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=slsgnL1u8hR90Aq9+nbpUOPyL9fdQC3CPyrDvMRg0zM=; b=RHoQB8s5D1i9nVcE4ELbbmAelHB30ObE7pfToWWYaHL9Rs4BetD7Mybq+fux1gynhRb9Vs 2jy23RwfhkJ3+cGYGBCtwXPyxQNS4ajn5fv4JZMqF8N5sgork0zbuaUIcvqTEpkCIeWRj0 F72T1xXaOneX9J+5DMpo2+xsMr6axEnk658zTQ8WkFwRizZ+SuhULqmryO4f8in+N8oi/j xX6CDB8PF+9zigBS71JbOUa85vCpqvZ+stnjwSlqSAKbI3TKiAxzAkIMUZp8bAqrfdd/FC RkUruFLo4X1ZFEoaJ0Jt1p5ahYK5h8J5wNRWwaO8rHVYQ2oi4fKIbccW7POaNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771492407; a=rsa-sha256; cv=none; b=F+xGGYPw4h+hEJywXlBI63LMQguIaSg+PIl8pwyYHPXOGwnO3G8bHCKB1LYejQWYVu/lOv LNdomOzxEibAxirrIVqdpjhGYBubbhID8eVN3RYFVT1HokOcqdxWNuN4tQH4iqNOnSskd9 nUhw6DcPHcdrt8RQrnG0SHKFWCpA3hz0lf2PU4IAgZiQjx6/4bfLkBWKzyrInnobstmt2/ rAaFxW3fODw8Pps/9jAK+z88RCT6EtKhHPw1An/SzvRK/ifBrUWZHUlObNVnH3uimQZxS5 2xy5gP2ltLTNkiw2FTUAMZSbbIZDxFYh4qb7O+/gqXg+tFPYHVTrGph7iZzjDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771492407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=slsgnL1u8hR90Aq9+nbpUOPyL9fdQC3CPyrDvMRg0zM=; b=fGRQ+G3YK2R8L+KTgd87aIGZoytmgO8AVfzizI8WaqaBWZ1A1ev7iS+v/l9o+QAwiYx7ci 3NNewGd/LR2t++ympdDv3rvmhCvbbb/rXOmVfPRMIkVYig/8da9ApnHK8nv9Lnisl+msU/ nV5MEnAnX1rEgBw/wdHHwCgh3xCaQUc3Y2CF6nLb5RELscFcm9P1uwh3nxd4YEJo3le7yQ LsM9+drVj2AtbkU3KcGQOgTUOHAGecD9eIkfQqZl1E/1/FFN69G4E+0rRMO6MF1SvF/HMO RljUhtxApEocxjstNDK0hu7l4w9CYaZmu6vDlWsE9/8e48YapE/XjozVVwGTMg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fGnjf6KYpzcfp for ; Thu, 19 Feb 2026 09:13:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c5e4 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 19 Feb 2026 09:13:26 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Baptiste Daroussin Subject: git: 8cb78e4865a9 - stable/15 - libusb: make libusb_hotplug_get_user_data actually return user_data List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 8cb78e4865a949262e9634a4ce65385053bf60fb Auto-Submitted: auto-generated Date: Thu, 19 Feb 2026 09:13:26 +0000 Message-Id: <6996d436.1c5e4.4a1baef7@gitrepo.freebsd.org> The branch stable/15 has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=8cb78e4865a949262e9634a4ce65385053bf60fb commit 8cb78e4865a949262e9634a4ce65385053bf60fb Author: Baptiste Daroussin AuthorDate: 2026-02-15 19:39:18 +0000 Commit: Baptiste Daroussin CommitDate: 2026-02-19 09:13:19 +0000 libusb: make libusb_hotplug_get_user_data actually return user_data MFC After: 2 days Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D55291 (cherry picked from commit be522176951d8b542de9354f4ec9ac7603745b71) --- lib/libusb/libusb10_hotplug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libusb/libusb10_hotplug.c b/lib/libusb/libusb10_hotplug.c index 9c46d4926bfa..359c818b5720 100644 --- a/lib/libusb/libusb10_hotplug.c +++ b/lib/libusb/libusb10_hotplug.c @@ -430,5 +430,7 @@ libusb_hotplug_get_user_data(struct libusb_context *ctx, } HOTPLUG_UNLOCK(ctx); - return (handle); + if (handle != NULL) + return (handle->user_data); + return (NULL); }