[openEuler-5.10 232/303] usb: chipidea: host: fix port index underflow and UBSAN complains