Re: [PATCH] can: flexcan: fix reference count leak in flexcan ops
On Sat, 7 Nov 2020 19:04:14 +0800 Zhang Qilong wrote: > Fixes: ca10989632d88 ("can: flexcan: implement can Runtime PM") > > Signed-off-by: Zhang Qilong No empty lines between tags, please.
[PATCH] can: flexcan: fix reference count leak in flexcan ops
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