Home
last modified time | relevance | path

Searched hist:"00 bd6bca3fb1e98190a24eda2583062803c9e8b5" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/usb/misc/
H A Dapple-mfi-fastcharge.cdiff 00bd6bca3fb1e98190a24eda2583062803c9e8b5 Mon Nov 02 03:26:50 CET 2020 Zhang Qilong <zhangqilong3@huawei.com> USB: apple-mfi-fastcharge: fix reference leak in apple_mfi_fc_set_property

pm_runtime_get_sync() will increment pm usage at first and it
will resume the device later. If runtime of the device has
error or device is in inaccessible state(or other error state),
resume operation will fail. If we do not call put operation to
decrease the reference, the result is that this device cannot
enter the idle state and always stay busy or other non-idle
state.

Fixes: 249fa8217b846 ("USB: Add driver to control USB fast charge for iOS devices")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20201102022650.67115-1-zhangqilong3@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>