summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-02-11 17:09:44 +0200
committerTom Rini <trini@konsulko.com>2021-02-16 11:16:08 -0500
commiteb5fd9e46c11ea41430d9c5bcc81d4583424216e (patch)
tree9350503678e51ec6ae294772ba83e233085629e1 /drivers
parent694cd5618c2ee263c025462e780354f28313b7a3 (diff)
downloadu-boot-eb5fd9e46c11ea41430d9c5bcc81d4583424216e.tar.gz
u-boot-eb5fd9e46c11ea41430d9c5bcc81d4583424216e.tar.bz2
u-boot-eb5fd9e46c11ea41430d9c5bcc81d4583424216e.zip
usb: kbd: destroy device after console is stopped
In case of IOMUX enabled it assumes that console devices in the list are available to get them stopped properly via ->stop() callback. However, the USB keyboard driver violates this assumption and tries to play tricks so the device get destroyed while being listed as an active console. Swap the order of device deregistration and IOMUX update along with converting to use iomux_replace_device() jelper to avoid the use-after-free. Fixes: 3cbcb2892809 ("usb: Fix usb_kbd_deregister when console-muxing is used") Fixes: 8a8348703081 ("dm: usb: Add a remove() method for USB keyboards") Reported-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions