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>
master commit: d6d0cb659f
master date: 2022-06-16 14:23:37 +0100
This commit is contained in:
Marek Marczykowski-Górecki authored and Jan Beulich committed 2022-07-12 11:11:35 +02:00
1 parent 460b08d6c6
commit 5cb8142076
1 file changed
+1 -1
+1 -1
View File
@@ -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 )
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.