Prevent that when ugen(4) tries to set an alternative configuration
authormglocker <mglocker@openbsd.org>
Fri, 5 Feb 2021 08:17:22 +0000 (08:17 +0000)
committermglocker <mglocker@openbsd.org>
Fri, 5 Feb 2021 08:17:22 +0000 (08:17 +0000)
commit2897a1a84d74c44e57465fa4ac34d3a1376e5edb
tree54fc14387a478b0fbe5d9a6da6baf7bc9e71a1be
parentd54086194aa160197ec0b0bdfe66c39d6fbc68df
Prevent that when ugen(4) tries to set an alternative configuration
descriptor (usually doesn't happen), that we continue to use an outdated
cdesc pointer which still refers to the previous cdesc.  Instead update
the cdesc pointer to the new configuration descriptor.

Reported by Thomas Jeunet <cleptho AT gmail DOT com>

ok phessler@
sys/dev/usb/ugen.c