Files
linux/drivers/usb
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
..
2020-05-13 14:20:00 +02:00
2020-05-18 07:55:55 +02:00
2020-04-27 09:32:30 +02:00
2019-10-14 07:09:59 +02:00
2020-04-27 09:32:30 +02:00
2020-05-18 07:55:55 +02:00
2019-09-03 19:00:39 +02:00