ehci-dbgp: fix selecting n-th ehci controller

The ehci<n> number was parsed but ignored.

Fixes: 322ecbe4ac ("console: add EHCI debug port based serial console")
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Marek Marczykowski-Górecki authored and Andrew Cooper committed 2022-06-16 14:23:37 +01:00
1 parent 4ccfee0a08
commit d6d0cb659f
1 file changed
+1 -1
+1 -1
View File
@@ -1480,7 +1480,7 @@ void __init ehci_dbgp_init(void)
unsigned int num = 0; unsigned int num = 0;
if ( opt_dbgp[4] ) 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); dbgp->cap = find_dbgp(dbgp, num);
if ( !dbgp->cap ) if ( !dbgp->cap )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.