1
0
Fork 0
alistair23-linux/drivers/usb/musb
Dinghao Liu 2d0c87d34d usb: musb: Fix runtime PM imbalance on error
commit e4befc121d upstream.

When copy_from_user() returns an error code, there
is a runtime PM usage counter imbalance.

Fix this by moving copy_from_user() to the beginning
of this function.

Fixes: 7b6c1b4c0e ("usb: musb: fix runtime PM in debugfs")

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Cc: stable@vger.kernel.org
Signed-off-by: Bin Liu <b-liu@ti.com>
Link: https://lore.kernel.org/r/20200525025049.3400-7-b-liu@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-10 20:24:56 +02:00
..
Kconfig
Makefile
am35x.c
cppi_dma.c
cppi_dma.h
da8xx.c
davinci.c
davinci.h
jz4740.c usb: musb: jz4740: Silence error if code is -EPROBE_DEFER 2020-02-01 09:34:44 +00:00
musb_am335x.c
musb_core.c usb: musb: start session in resume for host port 2020-06-10 20:24:56 +02:00
musb_core.h
musb_cppi41.c
musb_debug.h
musb_debugfs.c usb: musb: Fix runtime PM imbalance on error 2020-06-10 20:24:56 +02:00
musb_dma.h
musb_dsps.c
musb_gadget.c
musb_gadget.h
musb_gadget_ep0.c
musb_host.c usb: musb: fix crash with highmen PIO and usbmon 2020-04-01 11:02:15 +02:00
musb_host.h
musb_io.h
musb_regs.h
musb_trace.c
musb_trace.h
musb_virthub.c
musbhsdma.c usb: musb: dma: Correct parameter passed to IRQ handler 2020-01-14 20:08:31 +01:00
omap2430.c usb: musb: omap2430: Get rid of musb .set_vbus for omap2430 glue 2020-02-24 08:36:49 +01:00
omap2430.h
sunxi.c
tusb6010.c
tusb6010.h
tusb6010_omap.c
ux500.c
ux500_dma.c