Vaishnav Achath
73d5fe0462
spi: cadence-quadspi: Remove spi_master_put() in probe failure path
...
Currently the spi_master is allocated by devm_spi_alloc_master()
and devres core manages the deallocation, but in probe failure
path spi_master_put() is being handled manually which causes
"refcount underflow use-after-free" warning when probe failure happens
after allocating spi_master.
Trimmed backtrace during failure:
refcount_t: underflow; use-after-free.
pc : refcount_warn_saturate+0xf4/0x144
Call trace:
refcount_warn_saturate
kobject_put
put_device
devm_spi_release_controller
devres_release_all
This commit makes relevant changes to remove spi_master_put() from probe
failure path.
Fixes: 606e5d408184 ("spi: cadence-quadspi: Handle spi_unregister_master() in remove()")
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Link: https://lore.kernel.org/r/20220601071611.11853-1-vaishnav.a@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-07-14 13:26:35 +01:00
..
2022-04-13 16:43:13 +01:00
2018-04-23 15:48:18 +01:00
2022-05-26 10:43:09 -07:00
2022-05-16 12:59:15 +01:00
2021-04-20 17:26:40 +01:00
2021-10-20 01:53:15 +01:00
2021-10-20 01:53:15 +01:00
2022-07-06 15:20:46 +01:00
2022-01-04 14:59:40 +00:00
2022-01-26 12:58:14 +00:00
2022-06-29 18:10:12 +01:00
2021-10-20 00:23:21 +01:00
2022-02-08 13:40:18 +00:00
2022-01-07 13:36:37 +00:00
2022-05-16 17:57:01 +01:00
2021-03-12 14:30:42 +00:00
2021-03-10 12:25:12 +00:00
2021-03-12 14:30:43 +00:00
2021-07-20 13:34:05 +01:00
2022-02-01 16:08:47 +00:00
2022-04-06 15:50:11 +01:00
2019-06-19 17:09:09 +02:00
2022-02-22 11:56:41 +00:00
2021-06-01 14:03:12 +01:00
2019-06-19 17:09:09 +02:00
2021-03-10 12:46:05 +00:00
2022-07-14 13:26:35 +01:00
2022-03-07 13:16:07 +00:00
2022-06-06 12:32:25 +01:00
2019-09-04 17:17:27 +01:00
2020-06-16 00:38:39 +01:00
2019-10-15 11:51:57 +01:00
2022-04-25 14:01:09 +01:00
2021-08-19 18:20:10 +01:00
2021-08-24 20:53:24 +01:00
2021-12-23 13:38:38 +00:00
2021-11-16 14:30:05 +00:00
2021-12-23 13:38:39 +00:00
2021-11-16 14:30:05 +00:00
2021-11-16 14:30:09 +00:00
2021-11-16 14:30:05 +00:00
2021-11-16 14:30:10 +00:00
2021-08-03 18:27:24 +01:00
2021-03-12 14:30:48 +00:00
2022-05-26 14:43:28 +01:00
2020-08-23 17:36:59 -05:00
2019-05-30 11:26:32 -07:00
2021-08-10 13:22:19 +01:00
2021-03-12 14:30:49 +00:00
2019-05-30 11:26:32 -07:00
2019-08-28 14:10:41 +01:00
2022-04-19 12:06:18 +01:00
2022-05-09 12:48:47 +01:00
2021-06-01 14:03:12 +01:00
2019-05-30 11:26:32 -07:00
2022-01-28 16:00:24 +00:00
2022-02-22 11:56:41 +00:00
2021-11-17 13:04:54 +00:00
2021-04-12 17:07:38 +01:00
2022-04-22 12:37:36 +01:00
2022-05-25 16:55:16 -07:00
2022-04-25 14:00:51 +01:00
2022-04-13 13:47:37 +01:00
2022-02-14 12:53:09 +00:00
2022-04-20 14:25:20 +01:00
2022-02-14 12:53:09 +00:00
2019-05-30 11:26:41 -07:00
2021-03-24 19:51:09 +00:00
2022-02-21 13:25:19 +00:00
2021-05-20 18:00:34 +01:00
2021-05-10 13:07:53 +01:00
2019-09-04 17:18:35 +01:00
2022-06-06 12:32:27 +01:00
2022-01-26 13:32:36 +00:00
2022-01-07 13:36:38 +00:00
2022-04-05 10:21:55 +01:00
2022-04-05 10:21:55 +01:00
2022-02-02 16:09:29 +00:00
2022-04-19 16:32:14 +01:00
2020-12-07 14:18:59 +00:00
2022-04-12 17:18:51 +01:00
2022-05-03 14:00:38 +01:00
2021-10-14 13:32:19 +01:00
2022-04-04 08:45:14 +01:00
2022-04-25 14:00:59 +01:00
2022-03-07 13:16:58 +00:00
2021-05-11 15:42:48 +01:00
2021-10-02 01:31:49 +01:00
2021-05-11 15:42:49 +01:00
2022-05-04 16:02:36 +01:00
2021-05-20 17:58:33 +01:00
2022-04-21 15:01:08 +02:00
2021-10-15 16:10:59 +01:00
2019-09-04 17:20:52 +01:00
2022-01-31 15:17:30 +00:00
2021-10-26 11:53:57 +01:00
2021-05-20 18:00:40 +01:00
2021-05-18 14:05:35 +01:00
2022-02-28 12:10:27 +00:00
2022-02-16 16:34:26 +00:00
2021-11-29 12:19:59 +00:00
2021-03-16 10:14:11 +05:30
2022-03-07 13:16:08 +00:00
2020-12-07 14:18:55 +00:00
2021-02-04 18:45:57 +00:00
2022-03-10 12:17:56 +00:00
2022-06-20 11:35:43 +01:00
2022-04-04 08:38:59 +01:00
2022-04-12 17:17:22 +01:00
2020-08-19 21:40:14 +02:00
2022-01-24 13:37:34 +00:00
2022-03-08 20:07:09 +00:00
2021-05-21 13:13:33 +01:00
2019-10-15 11:51:57 +01:00
2021-09-17 13:17:50 +01:00
2019-06-19 17:09:55 +02:00
2021-03-12 14:30:45 +00:00
2019-11-04 13:26:11 +00:00
2021-03-23 17:19:45 +00:00
2022-02-09 13:00:45 +00:00
2022-02-09 13:00:45 +00:00
2021-08-26 12:09:38 +01:00
2022-04-25 14:00:57 +01:00
2022-02-01 16:08:45 +00:00
2022-05-11 19:48:07 +01:00
2022-04-25 14:01:08 +01:00
2022-03-15 12:03:58 +00:00
2021-06-23 11:48:36 +01:00
2022-04-19 13:13:42 +01:00
2021-02-03 16:23:07 +00:00
2022-04-25 14:01:03 +01:00
2022-04-25 14:01:06 +01:00
2022-04-19 13:13:44 +01:00
2022-03-08 12:28:05 +00:00
2019-05-30 11:26:37 -07:00
2022-04-19 13:13:45 +01:00
2022-02-09 13:00:45 +00:00
2022-03-08 12:28:07 +00:00
2022-01-26 15:52:05 +00:00
2019-10-15 11:51:57 +01:00
2020-09-17 19:56:01 +01:00
2021-11-15 13:27:17 +00:00
2019-10-01 12:35:18 +01:00
2022-02-08 13:37:50 +00:00
2022-03-02 13:45:36 +00:00
2022-06-03 11:48:47 -07:00
2022-04-19 13:13:48 +01:00