tmp_suning_uos_patched/drivers/usb/musb
Dinghao Liu e4befc121d usb: musb: Fix runtime PM imbalance on error
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>
2020-05-25 13:36:31 +02:00
..
am35x.c
cppi_dma.c
cppi_dma.h
da8xx.c
davinci.c usb: musb: davinci: Convert to use GPIO descriptor 2020-01-15 14:47:00 +01:00
davinci.h USB: musb: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
jz4740.c usb: musb: jz4740: Prevent lockup when CONFIG_SMP is set 2020-05-25 13:36:30 +02:00
Kconfig usb: musb: jz4740: Unconditionally depend on devicetree 2020-03-17 20:03:27 +01:00
Makefile usb: musb: remove dummy driver musb_am335x.c 2020-01-15 14:47:00 +01:00
mediatek.c usb: musb: mediatek: add reset FADDR to zero in reset interrupt handle 2020-05-25 13:36:30 +02:00
musb_core.c usb: musb: use true for 'use_dma' 2020-05-25 13:36:30 +02:00
musb_core.h USB: musb: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
musb_cppi41.c
musb_debug.h USB: musb: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
musb_debugfs.c usb: musb: Fix runtime PM imbalance on error 2020-05-25 13:36:31 +02:00
musb_dma.h USB: musb: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
musb_dsps.c
musb_gadget_ep0.c
musb_gadget.c
musb_gadget.h USB: musb: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
musb_host.c usb: musb: return -ESHUTDOWN in urb when three-strikes error happened 2020-05-25 13:36:30 +02:00
musb_host.h USB: musb: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
musb_io.h USB: musb: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
musb_regs.h USB: musb: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
musb_trace.c
musb_trace.h USB: musb: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
musb_virthub.c
musbhsdma.c usb: musb: Add musb_clearb/w() interface 2020-01-15 14:46:59 +01:00
omap2430.c usb: musb: Get rid of omap2430_musb_set_vbus() 2020-01-15 14:46:56 +01:00
omap2430.h USB: musb: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
sunxi.c usb: musb: Add musb_clearb/w() interface 2020-01-15 14:46:59 +01:00
tusb6010_omap.c
tusb6010.c usb: musb: tusb6010: fix a possible missing data type replacement 2020-03-17 20:03:28 +01:00
tusb6010.h USB: musb: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
ux500_dma.c usb: musb/ux500: Use dma_request_chan() instead dma_request_slave_channel() 2020-01-15 14:46:58 +01:00
ux500.c