Qinglang Miao
a85c5c7a3a
i2c: xiic: fix reference leak when pm_runtime_get_sync fails
...
The PM reference count is not expected to be incremented on
return in xiic_xfer and xiic_i2c_remove.
However, pm_runtime_get_sync will increment the PM reference
count even failed. Forgetting to putting operation will result
in a reference leak here.
Replace it with pm_runtime_resume_and_get to keep usage
counter balanced.
Fixes: 10b17004a74c ("i2c: xiic: Fix the clocking across bind unbind")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
2021-04-14 09:49:26 +02:00
..
2019-06-19 17:09:55 +02:00
2020-07-04 08:25:13 +02:00
2020-07-04 08:25:13 +02:00
2019-06-05 17:37:16 +02:00
2020-05-20 15:28:03 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2020-07-23 22:04:08 +02:00
2021-02-01 23:01:29 +01:00
2021-02-01 23:01:29 +01:00
2021-02-01 23:01:50 +01:00
2020-09-14 08:55:44 +02:00
2020-05-05 16:37:21 +02:00
2020-11-03 21:34:40 +01:00
2019-03-24 22:41:51 +01:00
2020-11-03 21:34:40 +01:00
2019-05-30 11:26:37 -07:00
2020-04-18 23:42:14 +02:00
2020-09-18 23:02:03 +02:00
2021-01-05 17:19:31 +01:00
2020-04-18 23:42:14 +02:00
2021-04-08 23:12:38 +02:00
2021-04-14 09:49:03 +02:00
2019-02-08 22:18:51 +01:00
2021-04-10 21:43:01 +02:00
2021-04-05 23:00:18 +02:00
2020-09-27 15:14:16 +02:00
2020-01-31 09:01:25 +01:00
2020-04-15 12:09:09 +02:00
2020-03-21 19:53:08 +01:00
2021-04-05 23:00:46 +02:00
2021-04-05 23:00:46 +02:00
2021-04-10 21:54:11 +02:00
2021-04-08 22:47:48 +02:00
2020-08-07 20:07:44 +02:00
2020-11-06 16:02:00 +01:00
2021-02-12 08:21:57 +01:00
2020-03-24 22:36:59 +01:00
2019-06-05 17:37:10 +02:00
2020-08-10 15:47:38 +02:00
2021-02-22 09:02:24 -08:00
2020-07-04 08:25:13 +02:00
2021-02-26 11:47:42 +01:00
2020-07-24 21:31:33 +02:00
2021-01-05 17:30:45 +01:00
2020-02-07 12:54:13 -08:00
2021-04-10 21:54:05 +02:00
2021-01-05 17:33:48 +01:00
2019-05-30 11:26:37 -07:00
2021-02-09 11:44:00 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-04-10 21:43:02 +02:00
2021-04-14 09:49:06 +02:00
2021-04-14 09:49:09 +02:00
2021-04-14 09:49:13 +02:00
2020-01-15 20:31:27 +01:00
2019-07-15 21:10:39 -07:00
2019-05-30 11:26:41 -07:00
2020-12-03 21:20:53 +01:00
2021-02-12 08:21:57 +01:00
2019-06-05 17:36:38 +02:00
2020-04-18 23:42:14 +02:00
2020-10-08 11:57:23 +02:00
2021-04-05 23:00:58 +02:00
2021-01-06 15:36:46 +01:00
2021-04-13 14:23:40 +02:00
2021-01-28 10:54:45 +01:00
2020-03-24 22:36:59 +01:00
2021-02-09 11:41:59 +01:00
2020-12-02 21:29:31 +01:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2021-02-02 14:25:50 +01:00
2020-09-27 20:05:27 +02:00
2021-04-10 21:43:01 +02:00
2020-12-03 21:18:16 +01:00
2021-01-17 12:26:55 +01:00
2018-03-02 11:11:15 +01:00
2020-04-15 12:09:09 +02:00
2021-04-14 09:49:17 +02:00
2020-08-23 17:36:59 -05:00
2020-12-09 21:23:21 +01:00
2020-03-10 12:19:52 +01:00
2019-05-30 11:26:41 -07:00
2021-01-26 07:42:27 +01:00
2020-12-02 21:29:31 +01:00
2020-07-04 08:25:13 +02:00
2020-02-07 12:54:13 -08:00
2020-07-04 08:25:13 +02:00
2021-03-18 11:59:57 +01:00
2019-06-19 17:09:10 +02:00
2020-12-09 21:45:47 +01:00
2021-04-05 23:00:58 +02:00
2021-02-26 11:32:15 +01:00
2021-01-22 09:59:25 +01:00
2021-03-18 11:59:00 +01:00
2020-03-24 22:36:59 +01:00
2020-09-27 19:58:56 +02:00
2019-06-05 17:37:10 +02:00
2021-01-22 09:59:49 +01:00
2021-03-18 12:11:45 +01:00
2020-12-09 21:29:50 +01:00
2020-07-04 08:25:13 +02:00
2019-06-19 17:09:07 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2021-04-14 09:49:20 +02:00
2020-04-02 15:54:13 -07:00
2020-09-21 11:45:43 +02:00
2019-08-14 14:56:54 +02:00
2020-09-21 11:45:43 +02:00
2021-04-14 09:49:23 +02:00
2020-04-18 23:42:14 +02:00
2020-07-23 22:04:08 +02:00
2020-01-15 20:39:41 +01:00
2021-04-05 23:01:48 +02:00
2021-01-28 10:03:58 +01:00
2020-03-24 22:36:59 +01:00
2020-01-06 15:40:43 +01:00
2020-04-18 23:42:14 +02:00
2020-04-18 23:42:14 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:37 -07:00
2020-07-23 22:04:08 +02:00
2019-05-30 11:26:32 -07:00
2020-03-24 22:36:59 +01:00
2021-04-08 23:12:38 +02:00
2021-04-14 09:49:26 +02:00
2020-04-18 23:42:14 +02:00
2020-04-15 12:09:09 +02:00
2021-04-10 21:54:05 +02:00
2021-04-10 21:54:05 +02:00
2020-07-23 22:04:08 +02:00