Centos-kernel-stream-9/drivers/usb/chipidea
Desnes Nunes 173062ada1 usb: chipidea: ci_hdrc_imx: decrement device's refcount in .remove() and in the error path of .probe()
JIRA: https://issues.redhat.com/browse/RHEL-78828

commit 74adad500346fb07d69af2c79acbff4adb061134
Author: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Date: Mon, 16 Dec 2024 10:55:39 +0900

  Current implementation of ci_hdrc_imx_driver does not decrement the
  refcount of the device obtained in usbmisc_get_init_data(). Add a
  put_device() call in .remove() and in .probe() before returning an
  error.

  This bug was found by an experimental static analysis tool that I am
  developing.

  Cc: stable <stable@kernel.org>
  Fixes: f40017e0f3 ("chipidea: usbmisc_imx: Add USB support for VF610 SoCs")
  Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
  Acked-by: Peter Chen <peter.chen@kernel.org>
  Link: https://lore.kernel.org/r/20241216015539.352579-1-joe@pf.is.s.u-tokyo.ac.jp
  Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: Desnes Nunes <desnesn@redhat.com>
2025-03-19 21:24:07 -03:00
..
Kconfig
Makefile
bits.h
ci.h usb: chipidea: udc: limit usb request length to max 16KB 2025-03-19 16:21:51 -03:00
ci_hdrc_imx.c usb: chipidea: ci_hdrc_imx: decrement device's refcount in .remove() and in the error path of .probe() 2025-03-19 21:24:07 -03:00
ci_hdrc_imx.h
ci_hdrc_msm.c usb: add missing MODULE_DESCRIPTION() macros 2024-11-07 23:01:35 -03:00
ci_hdrc_npcm.c usb: chipidea: npcm: Fix coding style with clarification of data type 2024-12-13 11:26:38 -03:00
ci_hdrc_pci.c
ci_hdrc_tegra.c
ci_hdrc_usb2.c
core.c usb: Use (of|device)_property_present() for non-boolean properties 2025-03-19 21:23:46 -03:00
debug.c
host.c
host.h
otg.c
otg.h
otg_fsm.c
otg_fsm.h
trace.c
trace.h
udc.c usb: chipidea: udc: improve error recovery for ISO transfer 2025-03-19 16:21:51 -03:00
udc.h usb: chipidea: udc: create bounce buffer for problem sglist entries if possible 2025-03-19 16:21:51 -03:00
ulpi.c Revert "usb: chipidea: move ci_ulpi_init after the phy initialization" 2024-10-10 16:36:46 -03:00
usbmisc_imx.c usb: chipidea: imx: add imx8ulp support 2025-03-19 21:23:48 -03:00