Skip to content

Commit fc2babb

Browse files
ForstNipaLocal
authored andcommitted
usbnet: ipheth: drop RX URBs with no payload
On iPhone 15 Pro Max one can observe periodic URBs with no payload on the "bulk in" (RX) endpoint. These don't seem to do anything meaningful. Reproduced on iOS 17.5.1 and 17.6. This behaviour isn't observed on iPhone 11 on the same iOS version. The nature of these zero-length URBs is so far unknown. Drop RX URBs with no payload. Signed-off-by: Foster Snowhill <forst@pen.gy> Signed-off-by: NipaLocal <nipa@local>
1 parent bc39414 commit fc2babb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/usb/ipheth.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,12 @@ static void ipheth_rcvbulk_callback(struct urb *urb)
286286
return;
287287
}
288288

289+
/* iPhone may periodically send URBs with no payload
290+
* on the "bulk in" endpoint. It is safe to ignore them.
291+
*/
292+
if (urb->actual_length == 0)
293+
goto rx_submit;
294+
289295
/* RX URBs starting with 0x00 0x01 do not encapsulate Ethernet frames,
290296
* but rather are control frames. Their purpose is not documented, and
291297
* they don't affect driver functionality, okay to drop them.

0 commit comments

Comments
 (0)