Skip to content

Commit 3085e67

Browse files
committed
usb: Request exact size in bulk transfers
To avoid a lot of WARN Event TRB for slot 1 ep 2 with no TDs queued? in dmesg.
1 parent b23b0ef commit 3085e67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/command_transaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CommandTransaction::Result::~Result()
4949

5050
void CommandTransaction::Result::allocate(size_t size)
5151
{
52-
if (capacity < size)
52+
if (capacity != size)
5353
{
5454
deallocate();
5555
data = new unsigned char[size];

0 commit comments

Comments
 (0)