Lukas Wunner
cad189512c
spi: synquacer: Disable clock in probe error path
...
commit 8853b2503014aca5c793d2c7f0aabc990b32bdad upstream.
If the calls to platform_get_irq() or devm_request_irq() fail on probe
of the SynQuacer SPI driver, the clock "sspi->clk" is erroneously not
unprepared and disabled.
If the clock rate "master->max_speed_hz" cannot be determined, the same
happens and in addition the spi_master struct is not freed.
Fix it.
Fixes: b0823ee35cf9 ("spi: Add spi driver for Socionext SynQuacer platform")
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: <stable@vger.kernel.org> # v5.3+
Cc: Masahisa Kojima <masahisa.kojima@linaro.org>
Link: https://lore.kernel.org/r/232281df1ab91d8f0f553a62d5f97fc264ace4da.1604874488.git.lukas@wunner.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-30 11:51:42 +01:00
..
2020-12-30 11:51:41 +01:00
2020-08-26 10:40:50 +02:00
2019-09-16 15:52:38 -07:00
2019-09-04 17:14:50 +01:00
2019-09-04 17:15:09 +01:00
2019-05-08 17:45:26 +09:00
2019-09-04 17:15:29 +01:00
2020-01-17 19:49:01 +01:00
2019-05-30 11:26:37 -07:00
2019-09-04 17:15:49 +01:00
2020-12-30 11:51:06 +01:00
2019-08-02 12:15:43 +01:00
2020-12-11 13:23:31 +01:00
2020-12-02 08:49:54 +01:00
2020-12-02 08:49:44 +01:00
2019-06-19 17:09:09 +02:00
2019-06-10 18:52:53 +01:00
2019-06-19 17:09:09 +02:00
2019-07-31 14:13:13 -06:00
2019-12-31 16:45:59 +01:00
2019-09-04 17:17:27 +01:00
2020-01-12 12:21:20 +01:00
2019-09-04 17:17:36 +01:00
2019-09-04 17:17:56 +01:00
2020-12-30 11:51:41 +01:00
2019-06-05 17:37:10 +02:00
2020-06-22 09:31:10 +02:00
2019-09-04 17:18:05 +01:00
2019-09-15 10:32:06 +01:00
2020-06-22 09:31:10 +02:00
2020-02-01 09:34:44 +00:00
2019-08-02 12:15:43 +01:00
2019-08-02 12:15:43 +01:00
2019-06-19 17:09:55 +02:00
2019-09-04 17:24:26 +01:00
2019-05-30 11:26:32 -07:00
2020-07-22 09:32:55 +02:00
2020-10-07 08:01:27 +02:00
2019-05-30 11:26:32 -07:00
2019-08-28 14:10:41 +01:00
2020-11-24 13:29:21 +01:00
2020-02-24 08:36:54 +01:00
2020-12-30 11:51:41 +01:00
2019-05-30 11:26:32 -07:00
2019-09-04 17:18:25 +01:00
2020-12-30 11:51:41 +01:00
2020-12-30 11:51:04 +01:00
2019-03-15 17:06:34 +00:00
2019-05-30 11:26:41 -07:00
2019-05-21 10:50:45 +02:00
2020-08-19 08:16:14 +02:00
2019-07-31 14:13:13 -06:00
2020-09-23 12:40:35 +02:00
2019-09-04 17:18:35 +01:00
2020-12-30 11:51:04 +01:00
2019-09-04 17:18:55 +01:00
2019-09-04 17:19:14 +01:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:37:16 +02:00
2019-05-30 11:26:32 -07:00
2020-07-29 10:18:37 +02:00
2020-12-30 11:51:05 +01:00
2020-12-30 11:51:42 +01:00
2020-12-30 11:51:09 +01:00
2020-11-24 13:29:22 +01:00
2019-09-04 17:20:03 +01:00
2020-12-16 10:56:56 +01:00
2019-09-04 17:20:33 +01:00
2020-10-29 09:57:41 +01:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2019-09-04 17:20:52 +01:00
2020-12-30 11:51:42 +01:00
2019-05-30 11:26:37 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:45 +02:00
2020-12-30 11:51:41 +01:00
2019-06-19 17:09:55 +02:00
2019-09-04 17:21:12 +01:00
2020-03-25 08:25:42 +01:00
2020-12-30 11:51:42 +01:00
2020-08-19 08:15:58 +02:00
2020-01-17 19:49:01 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-09-04 17:21:31 +01:00
2020-10-29 09:57:34 +01:00
2020-12-30 11:51:42 +01:00
2019-02-08 13:04:19 +00:00
2019-08-07 14:24:47 +01:00
2019-06-19 17:09:55 +02:00
2020-12-30 11:51:41 +01:00
2019-12-31 16:44:34 +01:00
2019-09-04 17:22:00 +01:00
2019-08-02 12:15:43 +01:00
2018-10-03 16:23:10 +01:00
2020-07-22 09:33:18 +02:00
2020-12-30 11:51:07 +01:00
2020-12-30 11:51:42 +01:00
2019-12-13 08:43:13 +01:00
2020-12-30 11:51:05 +01:00
2019-09-04 17:22:29 +01:00
2020-07-22 09:33:02 +02:00
2020-12-30 11:51:42 +01:00
2020-12-30 11:51:06 +01:00
2020-12-30 11:51:06 +01:00
2020-12-30 11:51:06 +01:00
2019-05-30 11:26:37 -07:00
2020-12-30 11:51:05 +01:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:36:37 +02:00
2020-01-09 10:20:04 +01:00
2019-05-30 11:25:18 -07:00
2019-06-19 17:09:55 +02:00
2019-09-04 17:23:28 +01:00
2019-06-19 17:09:55 +02:00
2019-09-04 17:24:07 +01:00
2020-03-25 08:25:45 +01:00
2020-12-30 11:51:10 +01:00
2020-08-19 08:16:25 +02:00