From: Marek Marczykowski-Górecki Date: Tue, 12 Jul 2022 09:11:35 +0000 (+0200) Subject: ehci-dbgp: fix selecting n-th ehci controller X-Git-Tag: archive/raspbian/4.16.2-1+rpi1^2~34^2~46 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5cb8142076ce1ce53eafd7e00acb4d0eac4e7784;p=xen.git ehci-dbgp: fix selecting n-th ehci controller The ehci number was parsed but ignored. Fixes: 322ecbe4ac85 ("console: add EHCI debug port based serial console") Signed-off-by: Marek Marczykowski-Górecki Reviewed-by: Jan Beulich master commit: d6d0cb659fda64430d4649f8680c5cead32da8fd master date: 2022-06-16 14:23:37 +0100 --- diff --git a/xen/drivers/char/ehci-dbgp.c b/xen/drivers/char/ehci-dbgp.c index c893d246de..66b4811af2 100644 --- a/xen/drivers/char/ehci-dbgp.c +++ b/xen/drivers/char/ehci-dbgp.c @@ -1478,7 +1478,7 @@ void __init ehci_dbgp_init(void) unsigned int num = 0; if ( opt_dbgp[4] ) - simple_strtoul(opt_dbgp + 4, &e, 10); + num = simple_strtoul(opt_dbgp + 4, &e, 10); dbgp->cap = find_dbgp(dbgp, num); if ( !dbgp->cap )