Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2026 15:20:38 +0000
From:      ShengYi Hung <aokblast@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: fe39b778c5c5 - stable/15 - libusb: fix incorrect status type when completion on cancel the events
Message-ID:  <6a19aec6.30f1b.36807c53@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by aokblast:

URL: https://cgit.FreeBSD.org/src/commit/?id=fe39b778c5c59fe0fbf52470afbdad843b94cdba

commit fe39b778c5c59fe0fbf52470afbdad843b94cdba
Author:     ShengYi Hung <aokblast@FreeBSD.org>
AuthorDate: 2025-08-05 09:41:17 +0000
Commit:     ShengYi Hung <aokblast@FreeBSD.org>
CommitDate: 2026-05-29 15:19:49 +0000

    libusb: fix incorrect status type when completion on cancel the events
    
    Reviewed by:    lwhsu, markj
    MFC after:      2 weeks
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D51736
    
    (cherry picked from commit 06271366982eb6fe59502fcdf95a1a22e0671d5f)
---
 lib/libusb/libusb10.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/libusb/libusb10.c b/lib/libusb/libusb10.c
index b3af017ab980..56c9caedab16 100644
--- a/lib/libusb/libusb10.c
+++ b/lib/libusb/libusb10.c
@@ -1769,14 +1769,14 @@ libusb10_cancel_all_transfer_locked(struct libusb20_device *pdev, struct libusb_
 		if (sxfer == NULL)
 			continue;
 		/* complete pending transfer */
-		libusb10_complete_transfer(xfer, sxfer, LIBUSB_TRANSFER_ERROR);
+		libusb10_complete_transfer(xfer, sxfer, LIBUSB_TRANSFER_CANCELLED);
 	}
 
 	while ((sxfer = TAILQ_FIRST(&dev->tr_head))) {
 		TAILQ_REMOVE(&dev->tr_head, sxfer, entry);
 
 		/* complete pending transfer */
-		libusb10_complete_transfer(NULL, sxfer, LIBUSB_TRANSFER_ERROR);
+		libusb10_complete_transfer(NULL, sxfer, LIBUSB_TRANSFER_CANCELLED);
 	}
 }
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a19aec6.30f1b.36807c53>