From nobody Mon Feb 16 08:14:08 2026 X-Original-To: dev-commits-src-main@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 4fDwXd2p4Mz6SVLk for ; Mon, 16 Feb 2026 08:14:09 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fDwXc5F6dz3cKW for ; Mon, 16 Feb 2026 08:14:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771229648; 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=233eKo22tYTETvwlGoHn0j5d6f6UsCTgXs3yViG9UHE=; b=eyMHl6Sq1Db3ZoWsIxTmgkfP+Oaz+k4gVPUEb275A2pRKZ5oASs19vZuJfw6kby31ae1kL OUPa0MgYUTVub3tIMLLM9MsQpnC5cQ7ZopPjofIZOwdXDr0AlG2kRkAQgpm5kk/nPONNIE lIrKmsTvQmy2Ny/Z0m24Z7FOLScqZiZu4plPxHH+yXi/guMLziXGpbJW+SEK+gb07X+sPp V1fh9QEcoe22zV5hdbtyfi3sWJ1QZzfQpqlZS00ByITxJ+0tY+0UXJjFRJ1OW1TIo44F4u u6+NpvgdEeiUYXtpGogCEAf7ZFMqlsjWP1dTBS1sj0YMpb3P19D59Roon8WgWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771229648; a=rsa-sha256; cv=none; b=bYihGrVYVKgRXN/a98RmfajfoWtYeIDUBsul/dnltfToLjq0q/109i/kTeMW6m5HJ1mN1N ZbevBVuMaA9vnfjXZsB+nn+bKT5uSVuec5E2CutLoffTGowIAx1qRIGg7OT1fddNHIxkHa YXce6TS+9J+PCUAdnb4UwsVeihBXQvOOTRofYLAQwheK33Ez3IhrkPljBEqsTVPgbqaG3m K6CVqBR9LIzK8ijPqSVBn6cn1ng2zym3TjJU5wxbaep9j/s6jWQ6WLcb2W4Soq4qBg2qlO dYQrMlve8RAKOA9mk0bA9N6K3XSt5psX4KMY1bA8Qv5ETlwGKrc7PS+wz/QsZg== 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=1771229648; 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=233eKo22tYTETvwlGoHn0j5d6f6UsCTgXs3yViG9UHE=; b=S37LweWuTr8xCUHOYYkisMcFpDrDv/lWY4KrPgOdccikH3dUXBLM9aAw+YqvCLqV3xuxPh Rib/Bvg5TmxipT6Sge7aYdncOUuigGXNFjsMZW51zme3N2az6TwXA4FKX9ixEO+Vjy26mH Ep5JCjSZexqv6O4pU2AgAb0tP6w9BvNKcW1BOACLHfJgKeg90uf3KnmpsGHPYHne251BHq N34QHXsTIN34k04zp8EpgO00V3QF/Cz8GOV+FDk0yLMzsxNPg4ZFnB9T8B/IjGwI9UvPJo +/abQtN49D0ha+XbbKSwX8uJWGrWLz53XNzucxdIczJVL54C3liHgmP5z4vu2w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fDwXc4Z7zzm4 for ; Mon, 16 Feb 2026 08:14:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 47a0a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 16 Feb 2026 08:14:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: be522176951d - main - libusb: make libusb_hotplug_get_user_data actually return user_data List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: be522176951d8b542de9354f4ec9ac7603745b71 Auto-Submitted: auto-generated Date: Mon, 16 Feb 2026 08:14:08 +0000 Message-Id: <6992d1d0.47a0a.72b11e8e@gitrepo.freebsd.org> The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=be522176951d8b542de9354f4ec9ac7603745b71 commit be522176951d8b542de9354f4ec9ac7603745b71 Author: Baptiste Daroussin AuthorDate: 2026-02-15 19:39:18 +0000 Commit: Baptiste Daroussin CommitDate: 2026-02-16 08:14:05 +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 --- 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); }