The C Source, Patches and (shudder!) Bugs
Post Reply
lkundrak
Posts: 24
Joined: Wed Jun 22, 2016 2:17 pm

usb_modeswitch: count the target devices from zero

Post by lkundrak » Fri Aug 18, 2017 10:47 am

Most likely a typo here.
Attachments
0002-usb_modeswitch-count-the-target-devices-from-zero.patch
(878 Bytes) Downloaded 245 times

lkundrak
Posts: 24
Joined: Wed Jun 22, 2016 2:17 pm

Re: usb_modeswitch: count the target devices from zero

Post by lkundrak » Wed Feb 28, 2018 11:22 pm

Update for 2.5.2
Attachments
0001-usb_modeswitch-count-the-target-devices-from-zero.patch
[PATCH] usb_modeswitch: count the target devices from zero
(847 Bytes) Downloaded 218 times

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: usb_modeswitch: count the target devices from zero

Post by Josh » Fri Mar 02, 2018 8:54 am

What's counted here are seconds. The idea is to have two loops with waits, and to limit their combined waiting according to the CheckSuccess parameter.

lkundrak
Posts: 24
Joined: Wed Jun 22, 2016 2:17 pm

Re: usb_modeswitch: count the target devices from zero

Post by lkundrak » Tue Mar 24, 2020 4:47 pm

Uh, okay, my bad. Then i is possibly uninitialized though (when devh is unset).
Attachments
0001-usb_modeswitch-fix-a-possible-uninitialized-loop-cou.patch
(1.61 KiB) Downloaded 6 times

Post Reply