Re: [PATCH v2] can: flexcan: fix reference count leak in flexcan ops

2020-11-11 Thread Marc Kleine-Budde
On 11/8/20 9:30 AM, Zhang Qilong wrote: > 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 > d

[PATCH v2] can: flexcan: fix reference count leak in flexcan ops

2020-11-08 Thread Zhang Qilong
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, it will result in reference